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?
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.
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].....
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.
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]...
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?
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.
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?
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)
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.
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.
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?
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 ?
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..
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
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.
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
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)
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
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
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.
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.