Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

override dimension value in drawing thru ilogic

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
dhaval3112
176 Views, 2 Replies

override dimension value in drawing thru ilogic

hello,

 

I want to override dimension value in drawing thru ilogic, with respect to drawing parameter

like... parameter size : 123 then dimension value should be 300

else 234 then 600........any idea how to do that.

dhaval3112_0-1704274855652.png

regards,

Dhaval

Tags (1)
Labels (1)
2 REPLIES 2
Message 2 of 3
d_eckel
in reply to: dhaval3112

Hi Dhaval,

 

I just tried a little bit and got this code working.

Dim oDoc As DrawingDocument = ThisDrawing.Document

MessageBox.Show(oDoc.Sheets.Item(1).DrawingDimensions.Item(1).ModelValue, "Title")
'oDoc.Sheets.Item(1).DrawingDimensions.Item(1).ModelValue '<- This is the real value
oDoc.Sheets.Item(1).DrawingDimensions.Item(1).ModelValueOverridden = True '<- set override
oDoc.Sheets.Item(1).DrawingDimensions.Item(1).OverrideModelValue = 15 '<- set value

The rest should be just some for each statements (e. g. sheets) and check if the value is equal to 123 or something else.

Message 3 of 3
dhaval3112
in reply to: d_eckel

@d_eckel ,

thanks its work perfectly.

 

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report