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: 

iLogic code to call Raw material & Size in drawing from model values

3 REPLIES 3
Reply
Message 1 of 4
ped20
905 Views, 3 Replies

iLogic code to call Raw material & Size in drawing from model values

 Hello Folks 

 

Greetings from Kiran 

 

Please find image attached, in this drawing template i am modelled a plate that is having this finish size

 

Please tell me how write a code in iproperteis Stock string to fetch length, width, thickness parameters 

 

That in to this Raw material & Size box 

 

 

Did you find this reply helpful ? If so, use the Mark Solutions! Accept as Solution or Give Kudos!Kudos - Thank you!
3 REPLIES 3
Message 2 of 4
Jefkee
in reply to: ped20

There is no image attached?

Inventor 2013
Message 3 of 4
Ktomberlin
in reply to: ped20
Message 4 of 4
yudhistira
in reply to: ped20

first you make a new parameter:

xmin

xmax

ymin

ymax

zmin

zmax

length

width

thickness

 

all  new parameter type numeric

 

then in rules write this code:

 

Dim oBox As box
oBox = ThisDoc.Document.ComponentDefinition.SurfaceBodies.Item(1).RangeBox

xmin=oBox.MinPoint.X
xmax=obox.maxpoint.X
length=(xmax-xmin)*10

ymin=oBox.MinPoint.Y
ymax=obox.maxpoint.Y
width=(xmax-xmin)*10

zmin=oBox.MinPoint.Z
zmax=obox.maxpoint.Z
thickness=(xmax-xmin)*10

 

 

HBM Training Center | Indonesian Professional CAD/CAM/CAE Training and Certification Center
http://www.hbm-training.com/
============================================================
If my solution can answer your question, please push
"Accept As Solution" button in below ....

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

Post to forums  

Autodesk Design & Make Report