Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to convert the normal dimension to driven dimension through ilogic

5 REPLIES 5
Reply
Message 1 of 6
linuskotte
852 Views, 5 Replies

How to convert the normal dimension to driven dimension through ilogic

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

5 REPLIES 5
Message 2 of 6
Yijiang.Cai
in reply to: linuskotte

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.

Thanks,
River Cai

Inventor Quality Assurance Team
Autodesk, Inc.
Email: River-Yijiang.Cai@autodesk.com
Message 3 of 6
linuskotte
in reply to: Yijiang.Cai

Thankyou River Cai for your reply

 

Iam not able to open your file.

 

I have only autodesk inventor 2012 .

 

Thanks &Regards

LINUS KOTTE

Message 4 of 6
Yijiang.Cai
in reply to: linuskotte

Here you are the one created in R2012.

Thanks,
River Cai

Inventor Quality Assurance Team
Autodesk, Inc.
Email: River-Yijiang.Cai@autodesk.com
Message 5 of 6
mrattray
in reply to: Yijiang.Cai

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

 

 

Mike (not Matt) Rattray

Message 6 of 6
blandb
in reply to: mrattray

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!

Autodesk Certified Professional

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report