Hi
I have one problem in ilogic "How to convert the normal dimension to driven dimension through ilogic"
Please help me
thanks in advance
Thanks & Regards
LINUS KOTTE
I did not get the method to accomplish it using iLogic, and you could use Inventor API to get it. Please see the attached part, and run the macro, the diameter of circle will be driven.
Hope it helpful for you.
Thankyou River Cai for your reply
Iam not able to open your file.
I have only autodesk inventor 2012 .
Thanks &Regards
LINUS KOTTE
Here you are the one created in R2012.
This works for me in iLogic:
Dim oDoc As PartDocument oDoc = ThisDoc.Document Dim oCompDef As PartComponentDefinition oCompDef = oDoc.ComponentDefinition oCompDef.Sketches(1).DimensionConstraints(1).Driven = True
I know this is old, but is there a way to associate the "(1)" in the "DimensionConstraints" to be a named dim such as "width"? I am not a programmer, so I am just curious. If I were to apply this code, do I count down the number of parameters in my parameters list until I find the one I want, and then enter its number into the (1) section?
oCompDef.Sketches(1).DimensionConstraints(1).Driven = True
Any assistance or explanation would be awesome!