AutoCAD Inventor :: Getting User Selection Within Part Edit Mode In Assembly File
Feb 24, 2013
I'm working on Autodesk VBA, and I'm trying to get user input on which vertex to use for a constrain. I want to make a macro that can go into part edit, allow user to select a vertex, and then automatically set up the constraint. Initially I wanted to do this in a single macro, using this short piece of code
while oSelectSet.Count <>1
DoEvents
Wend
While this worked when run directly from VBA, if I call it as a macro in Autodesk itself, the DoEvents doesn't seem o work because I wasn't able to make any selection at all. I googled and it seems like this is just how macros are.
So I split the code into a 2 subs and a function (as attached), and put them into separates rules that I call using a form in Autodesk. The first sub "Meta1Pin1_1" works, then I would select a vertex in edit mode. But when I go ahead and call the second sub "Meta1Pin1_2", I get the error message that I created which says no vertex is selected. But if I select a vertex and call the second sub again, it will work.
So I've been trying different things and I realize that every time when I first call the second sub, my selection is erased teh moment it goes into the sub. But, for some unknown reason, the selection will remain when I call it the second time. I can't figure out what exactly happened between the first and second call of the same sub, that allowed the selection to remain.
' prepares assembly for user input by grounding bones and going into part edit
Public Sub Meta1Pin1_1()
Dim oDoc As AssemblyDocument
[Code]....
View 2 Replies
ADVERTISEMENT
Feb 27, 2013
is it possible to write a plug in that runs when a user does something.example. you start inventor and open a assembly file the user selects a part and the plugin automatically runs.no pussing buttons, no quick key, it just runs.
View 2 Replies
View Related
Mar 26, 2012
I have written a program where i will copy inventor assembly tree to custom form in tree format. Now my problem is whenever i click a part in tree i must edit the part. I am trying to access the Fx parameter/IAssembly to use it but not getting desired results .
View 8 Replies
View Related
Jun 7, 2013
When I double click a part in an assembly it does not edit the part.
When I right click "edit" is greyed out.
How do I edit a part in an assembly.
View 1 Replies
View Related
Mar 28, 2012
Dear Sir, In particular project, when I insert part in Assembly file, It is inserted as a Tube & Pipe run part. so that It is not Grounded automatically. What is the settings by which I can insert as a normal part in assembly file ? I have attached herewith the JPG file also.
View 3 Replies
View Related
Nov 15, 2013
New user 2014
Part created in assembly does not update to part file.
View 9 Replies
View Related
May 21, 2012
I would like to have a rule that will add specific user parameters to a part file. These parameters need to be formatted so the width, depth and thickness will control the description of the part.
IE:
Width=4
Depth=2
Thickness=3/16
DESCRIPTION = TS <Width>X<Depth>X<Thickness>
I would like to format each parameter so that the:
Format=Fractional
Precision=1/16
Unit string=False
This is what I have so far:
oMyParameter=ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters
oParameter=oMyParameter.AddByExpression("Width", "TOP_RAIL_WIDTH", UnitsTypeEnum.kInchLengthUnits)
oParameter.ExposedAsProperty=True
oParameter.Units="in"
[Code]...
The TOP_RAIL parameters are from a linked file.
View 9 Replies
View Related
Sep 24, 2012
I want to import some of the iproperties of one ipt file into an iam file.how to do it.
IV 2010 Suite
Digital Storm PC:
EVGA & Intel components
Win 7 Pro 64 bit
View 9 Replies
View Related
Dec 13, 2013
Describe the external referencing of a part file by an assembly file? I keep getting confused between part file and an assembly file.
View 2 Replies
View Related
Sep 14, 2012
Is there anyway of finding out a part or assembly files dependencies external to inventor without using vault?
View 1 Replies
View Related
Nov 7, 2013
Is it possible to identify the location of a part in an assembly file?
I cannot access (or find access to) global locations, just local. You may ask, whats the problem? Well, right now, I have 10 subAssemblies and they are all "located" at (0,0,0), which means I have 10 solids sharing the exact same space. This problem can be easily fixed if I can compare the Global Origin to a Local Origin, but I can only find the "work axes origin" which is worthless to me.
View 2 Replies
View Related
Sep 18, 2012
We have an iLogic assembly with to parts in it. Maybe to cylindrical parts. The iLogic rules should do the following.
1. Start a Rule after open document.
2. This Rule starts a Rule in the first cylindrical component.
3. This Rule ask the user for a diameter.
4. The assembly gives this new parameter value to the second component
5. Then the assembly calls another rule in the second component to change it with the new parameter
Everything is working fine when the following combinations are taking place:
1. I open up the assembly out of vault or from a local drive or an accessible server drive
2. I insert the assembly as sub assembly in another assembly from a local drive or an accessible server drive
It don't work with the following situation:
- I insert the assembly as sub assembly in another assembly out of vault
Then the user becomes the dialog "Choose a diameter" twice.
I don't know why, but I have the idea it has something to do with the functionality of inventor to insert a component more than once. If you insert a component in an assembly Inventor gives you the opportunity to add more than one occurence after each other.
change that behaviour? Maybe a switch to change that inventor "add more than one occurence" behaviour.
View 1 Replies
View Related
Jan 22, 2013
My goal is to open have people go into a central assembly file, type in their specific parameters and the various part files update within the assembly. I wish to do this without the need for an excel sheet, but when I try to link the parameters from the assembly file to the part files, it will not allow me to insert these parts. I get an error about an "assembly can not be placed into itself."
Iparts will not work as this has an infinite amount of sizes.
View 3 Replies
View Related
Jan 30, 2013
I have finished all my parts and now i have to assemble them. I normally just use the constrain tools, but this time i need to set a part in mid air. I would like to use the move tool, but with exact xyz coordinates. I only seem to be able to do that with an UCS (coordinate system), not the part itself. I guess it's just a button i'm missing somewhere.
View 2 Replies
View Related
Jan 30, 2013
How can I make an assembly file independent from the part files that went into it? I tried converting it to STL then opening the STL document, but that causes problems with what I'm trying to accomplish.
View 4 Replies
View Related
Sep 9, 2012
I have an assembly with a few parts inside and want to create a new part(hose) in the assembly and link some faces from other parts within the assembly to my new part to show the routing of the hose.
Can I link faces within an assembly to one of the assembly components.
View 2 Replies
View Related
Nov 6, 2013
I am trying to extract part locations from an assembly file. I've been successful UNTIL I come to a part/subAssembly where the workAxes is orientated differently then the overall assembly axis. Is it possible to compare the local axis to the global axis? If the answer is 'yes', can sample code be posted (i.e. dim sameOrientation as bool; sameOrientation = ... )?
Also, once I know that "sameOrientation = false," how would one convert local coordinates to global coordinates?
View 2 Replies
View Related
Nov 22, 2012
I am currently working on a school group project that requires me to submit all inventor files as "LASTNAME_FIRSTNAME_PART,ASSY,DRAWING,etc..NAME". My original parts were all done in mm instead of cm, so for our project, I opened all new files and derived the same parts at a different scale to fix this scale issue between the members. For the new derived parts I temporarily allowed the file name to remain as part1, part2, part3.... and continued with the assembly. Now that my assembly is complete and I would like to change my part file names to the required format, my assembly will not show the parts and (?) symbol is shown by all parts with updated file names. I also changed the original file names and now the new derived parts, when opened, have the same (?) which I assume is related to the fact that the derived parts are dependent on the original file. Is there a way to update this information? We are using INVENTOR 2013.
View 2 Replies
View Related
Apr 17, 2012
I have received a great solution from Bobvdd allowing ilogic control of the view rep in a part file (not an assembly file). The code below works brilliantly when the part file is the active document. However when the part is placed in an assembly and the ilogic is run with the assembly active, the code produces no result. How to modify the top 6 lines of code?
Dim oApp As Inventor.Application
oApp = ThisApplication
Dim oDoc As Document
[Code]....
View 2 Replies
View Related
Apr 27, 2012
I would like to save my inventor Part and Assembly model file in a lower version. Like in our company we use both Inventor 2012 and 2010. Once the file is created in 2012 and when shared to 2010 users they are unable to open, is there any possiblities to open 2012 files 2010 like how we do in Autocad.
View 2 Replies
View Related
Dec 13, 2013
I have an assembly in which the thickness of each of the layers in an assembly are generated from a part file that is split via a sketch. I use the Make Components tool to break the part into the individual layers, which also spits out an assembly.
Is there a way to push the thickness value of these parts that will update automatically if the thickness is changed in the parent part, in order to reference this property on the drawing?
View 6 Replies
View Related
Apr 24, 2013
I have created a parametric, multibody master part file to derive parts from it, and then put them in an assembly. See attached file. Now, I need 3 different versions of this setup (with different values of the parameter 'bending_angle').
What is the best way to do it? If I derive parts from it, they always follow the *actual* status of their master file. Is there some method to do this: "derive from this file, with parameter bending_angle=55deg", but keep the dependency relation, i.e. if I modify something on the master file, the derived part fill follow the modifications (with the value of bending_angle=55deg)
Inventor 2013
View 3 Replies
View Related
May 31, 2012
I received a stp.file from a vendor and need to add shrink to the file. How do edit the file? Also, once the shrink is added I need to be able to make a split mold out of the part. How would I go about do that? I should be able to make a block; then cut the part out of the block. Is that correct?
View 5 Replies
View Related
May 1, 2012
I am trying to edit a sketch in a multi body part file. While I am trying to edit, it displays all other solid bodies which is not required. How to switch them off displaying unnecessary solid bodies while editing a sketch?
View 6 Replies
View Related
Sep 3, 2013
In mesh edit mode, when you assign a material to the selection, it works as expected, it assigns the material only to what is selected, for example, a face.
In poly edit mode, it works differently, if you try the same approach it assigns the material to the entire object and you have to deal with multi-materials and material IDs to achieve that, what is very boring and totally unintuitive imho.
Is there an option to make the poly editing mode work like the mesh editing mode, or at least another way to achieve the same result in a intuitive or at least 'visual' fashion?
View 3 Replies
View Related
Apr 1, 2013
I`m looking for the iLogic code that can change one parameter (user defined) for each (ipt) part in assembly (iam)
The one below doesn`t work.
Sub Main Dim oApp As Inventor.Application = ThisApplication Dim oAssy As Inventor.AssemblyDocument = oApp.ActiveDocument For Each oSubDoc as Inventor.Document In oAssy.AllReferencedDocuments On Error Resume Next Parameter(oSubDoc, "FH") = 15.26 Next End Sub
View 5 Replies
View Related
Dec 11, 2013
I would like to simplify this assembly into one seamless part for FEM calculation:The assembly consists out of parts that, in reality, will be welded together. Due to their form, there is no way to place them exactly onto each other, therefore there are slight gaps between the parts:
Now when I try to merge the assembly into one part via "simplify" --> "create simplified part" and choose "single solid body with seams between planar faces merged", Inventor does not fill these gaps (even though it displays only one part in the bottom right corner of my window). Unfortunately, the remaining gaps brings "contact" problems in the FEM simulation.
how to close the gaps and really merge the assembly into one part?
View 6 Replies
View Related
Mar 29, 2012
I have a part that has protrusions. When i mate that part up to another part that second part needs to have cutouts/holes to receive those protrusions.
i mainly use it in sheetmetal parts. and use the rectangular protrusions on de contour to mate up with corresponding cutouts in the other sheet. this works with positioning and also makes for a nice weld spot/area.
But also for making holes to accommodate a mold pin used in custom punch dies. I want the intervening part to receive a corresponding (propperly tolleranced) hole automatically. Much like a bolted connection does.
same for parts like circlips. i want them to automatically generate the seat in the part it's mated to. Rather than using the axle generator.
Ofcourse one can place the parts and do an in assembly interpart projection and go from there, but i want the part to generate the (predifined) modification to the other part. It would save time and also reduces problems as the parts are moved about or even removed.
View 7 Replies
View Related
Jul 1, 2013
I have an assembly with 10 parts in it. We use many assembly features at the assembly level (Revolve cut, Extrusion cut..etc). How to find the mass difference of each part by comparing at its parts level and its assembly level.
View 1 Replies
View Related
Oct 3, 2013
I have a two part duct fire damper assembly. The IDW has the combined two part assembly, which I know how to turn the CoG on, so that it can be dimensioned. The problem is each piece will more than likely be hoisted separately so I would like to show the CoG for each piece, not the combined master assy.is there a way to do this?
Inventor 2014
Windows 7 Pro SP1
Intel(R) Core(TM) i7-3770k CPU @ 3.50GHz
16GB RAM
NVIDIA Quadro 4000
3D Connexion SpaceMouse Pro
View 5 Replies
View Related
Aug 20, 2013
If I want to find part which is inside another part or assembly, which means no matter how I turn camera, I always cannot see that part.
Does inventor has this function? Or is it possible to develope by .NET API?
View 4 Replies
View Related