AutoCAD Inventor :: Prompt User To Select A View When In Macro?

May 14, 2012

I have a macro which

1) checks to see if the active document is a drawing

2) Checks that the drawing is of a part

I want to prompt the user to select a view on the drawing, if this is not the first view on then a warning message is displayed.

Then I want to take this active view and change all of the geometry lines and holes EXCEPT for bend lines to a specific layer.

View 4 Replies


ADVERTISEMENT

AutoCAD Civil 3D :: How To Prompt User To Select Existing Pipe Network In VBA

Aug 31, 2012

I'd like my macro to prompt the user to select a pipe network that I will then export to excel. How is this possible to achieve? 

Using Building Design Suite Ultimate 2014

View 1 Replies View Related

Illustrator SDK :: Prompt User To Select Art?

Feb 21, 2012

Is there a method available to have the plugin pause and wait for a user to click some object, then continue? Or does all user interaction have to happen before/after the plugin is run?

View 2 Replies View Related

Illustrator :: How To Prompt User To Select Multiple Files In File Dialog Using Scripts

Oct 5, 2013

Is there a way to allow user to select multiple files inside the file dialog using scripts? So not just something like "*.ai" or "*.eps" but where the user can actually use their shift key to select a batch of files inside the file dialog and then the script would process each one.

View 3 Replies View Related

AutoCAD Inventor :: Prevent User To Start Other Command While Executing A Macro

Feb 21, 2013

I have a macro that automatically creates a Detailed view on a sheet. It works on 2 input's:

- mouse click 1 (set's the target to be detailed)

- mouse click 2 (set's the location where the balloon should be)

The code works fine. But sometimes the user will start another command, or restart the same command, while it is still running. This off course gives all kinds of problems.

Is there a possibility in VBA to prevent the user to start another command while this command is running?Or is this problem a part of the clicking itself?

Here is my (it uses a Class Module called: clsGetPoint, see code below)
Sub AutoDetailedView() On Error GoTo ErrorManagment '(error handling 2013/02/18) 'step 0 Create a transaction. -> for 1 undo command Dim oTransMgr As TransactionManager Set oTransMgr = ThisApplication.TransactionManager Dim oTrans As Transaction Set oTrans = oTransMgr.StartTransaction(ThisApplication.ActiveDocument, "AutoDetailedView") 'step 1 Select a drawingView 'Set a reference to the drawing document. Dim oDrawDoc As DrawingDocument Set oDrawDoc = ThisApplication.ActiveDocument 'Set a reference to the active sheet.
[code].....

View 5 Replies View Related

AutoCAD .NET :: Prompt Line Entity From The User?

Aug 16, 2012

How could I prompt a "two points" line entity from the user?

Something similar to " Editor.GetPoint() " ??

I was trying to use Editor.GetPoint() method two times. But this option does not show the preview of a line.

I also tried a combination of

doc.SendStringToExecute("line ");
db.ObjectAppended += new ObjectEventHandler(LineAppended);

but this option triggers LineAppended event handler as soon as I create the first point of a line. So it does not work.

View 1 Replies View Related

AutoCAD .NET :: Prompt User To Pick Point On Circle With Given Radius?

Jul 25, 2013

I need my users to pick a point p, enter a distance r and a direction v. A new point should be created r units away in vectorial direction. Therefore, the new point is located on an imaginary circle with radius r and center p.

Currently, the user picks the first point and enters a distance. Then, he has to pick another point (Editor.GetPoint with UseBasePoint = true), I calculate the vector between both points, create a new point (with location = BasePoint.location) and translate it d units in vectorial direction. This works of course, but the problem is, that the user doesn't see directly, where his new point is located, since he may pick a point closer to or farther away then r units.

Naively spoken, I want to restrict the line between BasePoint and new point while prompting the user to a fixed length. Native calls to ObjectARX-methods would be also okay.

View 3 Replies View Related

AutoCAD Inventor :: Set IDW File (Base View) Via A Macro

Oct 9, 2013

I need, using a macro, the ability to pre set the file that I am going to use as a "Base View" on a IDW file.

I call the ipt file "FRED.IPT", when I run the macro, it opens a new clean idw sheet and pre-sets the "Base View" to "FRED.IPT".

or

Automatically open a clean idw sheet and place the file "FRED.IPT" on the sheet, automatically.

View 1 Replies View Related

Illustrator Scripting :: How To Get User Input Via Prompt

Oct 3, 2013

I have this working without the prompt, if I under manually the margin via var margin = 10; it works. it also seems to return correctly when I print what the input from the user is, but it doesn't seem to want to work and freezes.
 
it says "point value expected"
 
//Helper functions
function print(i) {
    if(i == "object"){
        print("you are trying to printObject, use printObj(); function");
    }
    else { 
        $.write(i+"
[code]...

View 1 Replies View Related

AutoCAD Inventor :: Determining Base View Type In IDW File Using VBA Macro

Jun 29, 2013

If I have a "idw" file open containing an assembly (asm), and another "idw" file containing a part (ipt), how can I determine, using a VBA macro the type of file that I have used (either "assembly" or "Part")

If the "Idw" file contains an assembly, running the maco should say "assembly". If it contains only a part (ipt) then it should say "part"..Is this possible using a vba macro?

View 1 Replies View Related

AutoCAD .NET :: Select Object Command Prompt

Jun 4, 2012

I'm creating a VB.Net routine which will run the REVCLOUD command.  In my application I prompt the user to select a single polyline using:

EntRslt = acDoc.Editor.GetEntity(EntOpts)

Then later I run the REVCLOUD command using:

acDoc.SendStringToExecute("_revcloud Object Poly No ", False, False, True)

Where Poly is the polyline I selected earlier.  Of course, the line above doesn't work since "Poly" is interpreted as a string.  But I would like to figure out how to pass my VB.Net selected Polyline into the REVCLOUD command.

How I might do this?  The REVCLOUD command will not accept the "Previous" selection set so setting the Implied Selectoin does not work.  If my Polyline was the Last object in the database I could use the "Last" option, but it isn't.

View 7 Replies View Related

AutoCAD Inventor :: Change Multi Value Select To Custom Value Input In Ilogic User Parameters

Aug 31, 2011

I want to change 'mutil value select" to "custom value input" in ilogic user parameters. something like this:

if condition A then

multivalue.setlist("length", 1,2,3,4,5)
else

(users can enter any value they want, how can i remove the list first and set it to custom value input?)

View 2 Replies View Related

AutoCAD Inventor :: ILogic Rule - User Input Brings Up Drawing View Dialog Box

Jan 30, 2013

Currently have an iLogic rule in my drawing template that base on user input brings up the Drawing View dialog box (as though you click on base view).  I want to know if there is some coding I can do to control or handle what happens if the user clicks the cancel command inside this dialog box.  Possibly show a message box. Or even run another rule after the cancel button has been clicked?

View 1 Replies View Related

AutoCAD Inventor :: Custom / User Properties In View Label Of Drawing Template / Style Library

Apr 18, 2012

Is there a way that we can set the view label in the style library to show custom/user Properties?

We have set our iam/ipt templates to have some custom properties which we wish to display in the view label when the view is created however there this no way to add these properties to the label.

I find this a little strange as you can add these user Properties to the parts list in the style library? (I've added some screen caps to show what I am talking about)

View 8 Replies View Related

AutoCAD Inventor :: Adding Save Run Macro To Automatically Run Macro

Dec 30, 2012

I have been using the addin "Save Run Macro" to automatically run a macro every time the "Save" button is pressed.

Any of the following questions about "Save Run Macro"?

1] When I protect the macro from viewing (so I can protect my code) "Save Run Macro" does not see the macro.

2] When I save the part for the first time (ipt, iam or idw/dwg) the macro does not run. I always need to run the macro again.

View 1 Replies View Related

AutoCAD Inventor :: Select Profile For Sweep In Section View

May 23, 2012

I am trying to perform a sweep of a profile and I am unable to select the profile. I have a part with a plane through the part. I created a profile on this plane that I want to sweep along my path. However whenever I try to select the profile I am unable to, even when I sectioned the part to the created plane.

View 2 Replies View Related

AutoCAD LT :: Select All Dimensions Or Text Macro

Jul 24, 2013

Do you have a macro or Diesel command that would select all text or dimensions in a drawing and delete it automatically. I've seen an LISP command, but I know from a fact that it does not work on LT. By the way, I'm using Autocad LT 2014.

View 2 Replies View Related

AutoCad :: Action Macro - How To Select Last Layout Tab

May 3, 2012

I want to make a action macro that selects the copy the last layout tab, copy that, goes modelspace and -pan @some numbers, go back in modelspace. stop.

I've recorded the following steps successfully:

Layout
copy
<Enter>
<Enter>

and

mspace
-pan
(basepoint plus some mumbers)
(@-3000,0)

I would like to know the command for selecting the last layout tab. Without using right-click functions which, as I know of, are not recorded?

View 3 Replies View Related

AutoCad :: Lisp Or Macro To Select CTB File?

Sep 29, 2011

I work in a place that his literally dozens of .ctb files.

Client specific, job specific , projects phase specific - you name it.

Is there a customable lisp routine or macro to invoke - Page Set Manager - Modify - Plot style Tables (pen assignments) - and then to select the particular .ctb file you want ?

View 1 Replies View Related

AutoCAD Inventor :: Cannot Select Model Edge To Dimension In Drawing View (idw) File

Oct 16, 2012

 unable to select an edge in the drawing view to create a general dimension.

View 1 Replies View Related

AutoCAD Inventor :: Transition From Single User / Desktop Content To Two User / Vault?

May 7, 2013

After getting Vault installed on our server and successfully setting up users and connections, I used the Library Transfer Guide to move our Content Center (including custom) to the Vault. I then changed the Inventor Application Options -> Content Center -> Access Options to Autodesk Vault Server.

This seems to have worked, as I can Place from Content Center when in an assembly, and it is pulling standard content as well as our custom files properly from the vault.  However, in the instructions that I used for the installlation, it was suggested to stick with a standard folder structure within the Vault, namely two Library Folders named 'Content Center Files' and 'Libraries' and also a regular folder named 'Designs'.

 I created those folders prior to transferring the library, as I thought they would be populated with the standard/custom content. This was not the case and I am curious when these folders come into play? *they are empty*

Also, today I will be attempting to 'Check In' a project to the Vault that I recently completed; does this usually maintain structural relationships between files?

Would you recommend using a single project structure in vault for two people? It seems, since we won't be working on the same project at the same time, having a single project would not be relavant to our situation..

Inventor 2011 / Windows 7 Pro SP1 64bit
Dell Precision T3600
Intel Xeon E5-1607 @ 3.00GHz
AMD FirePro V4900
20 GB Ram

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Select All In Macro

Jun 19, 2013

Trying to add this macro to a new command in my cui. Does Select all not work in macros?

^C^Clayiso;;_select;all;;_chprop;la;c-rway-x;;

View 8 Replies View Related

AutoCAD .NET :: Allow User To Select Red Line

Dec 29, 2013

Closet point? No

Intersection point? No...

This point is a special point, just corner of the PolyLine.I plan to only allow the user to select the red line, then the program loops through all polylines near the red line, and then find that point

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Pause To Allow User To Select Layout Tab

Sep 13, 2011

I need a command that will allow the user to select a layout tab.  I thought the following would work, but it just ends the LISP program:

(command "layout" "s" pause)

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: User Is Prompted To Select A Row Of Blocks?

Oct 25, 2011

I am looking for a way where a user is prompted to select a row of blocks and then that row is completely mirrored about the middle of the selection set - such that if the blocks are originally inserted, from left to right "A" "B" C"  then after mirroring, we want them t occupy (roughly) the same space in the drawing area as "C" "B" "A".

Then, immediately after mirroring that selection set in place, each individual block that makes up the selection set is mirrored about its insertion point along the x axis..... basically i need to mirror a selection set of a row of blocks so I change their order of occurrence and then mirror each individual block back again to the way it is meant to look.

Is this possible?

View 9 Replies View Related

AutoCAD Inventor :: Create A Prompt Box In IPT?

Jul 31, 2012

I am trying to come up with an easy way to input information for basic objects that we need for sales drawings. Is there a way to create a prompt(length, width, Diameter etc.) so when you open the .ipt it pops up? Anything a little more organized than the parameters box? I've done an excel sheet in the past for certain things, but didn't want to carry and excel sheet over for this option.

Inv 2011
Windows 7
Inventor 2011
Intel Core 2 Duo 2.93GHz
8GB RAM
Windows 7 Pro

View 6 Replies View Related

AutoCAD Inventor :: Prompt File Name IPT?

Feb 26, 2013

How can I add a rule so everytime I open a new .ipt the user have to type the file title and when saving the file the name of the .ipt is the same the promted entry?

Is it something like this?

Filename = iProperties.Value("Filename", "Title")
Filename = InputBox("Please type title", "Title",Filename)

I have the rule tp tripper when I open the file.

View 1 Replies View Related

CorelDRAW X4 :: Macro To Select All Named Objects

Apr 4, 2012

need a macro code that will select all objects that I've named "X" then delete them. Tried recording but it only works for the one object and not all of the same name

View 8 Replies View Related

AutoCAD Inventor :: Derive Prompt Not Working?

Feb 10, 2013

yesterday when I clicked on "Derive" while in a part file I would get a browse window to select the part I wanted to derive, after this a prompt would come up that asked if you wanted the part to be a surface or a solid, if you wanted to scale it, etc. For some odd reason today when I tried to derive a part it doesnt come up anymore. After I select the part it just gets inserted and to keep it I have to hit enter or right click and select "ok". Not sure why the prompt stopped popping out, havent changed anything.

Inventor Professional 2013
Autodesk Inventor Professional 2013

View 5 Replies View Related

AutoCAD Inventor :: Turn Off Prompt In 2012?

Oct 8, 2013

I wan to turn this prompt off...period.  Not fix it, just turn it off. 

"The location of the selected file is not in the active project. To ensure that the file can be found when you open files that reference it, add the location to the project or move the file to a location specified in the project."

Looked through options, changed approproate setting to "Never". Still prompts.

View 9 Replies View Related

AutoCAD Inventor :: VBA And IPart Update Prompt?

Jul 12, 2011

I have a macro that changes the active material for each member of an ipart (this is done when i am editing the iparts).

My problem is that it constantly prompts that the table differs from the part and do I want to copy the information back to the table.

I want to stop this prompt and have it automatically set to "Yes". I can use the silent operation option but it defaults to "No" for some reason which makes the macro go to the next member without setting the material back into the table.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved