Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

ilogic : Autodimensioning of Drawing

Anonymous

ilogic : Autodimensioning of Drawing

Anonymous
Not applicable

Dear friends.

I am trying to add a thickness dimension to the part below as shown:

 

Thickness Automated.JPGThickness Part File.JPG

 

Now i want to write an ilogic code to get this NominalThickness value in the part and show it in the drawing.

How can i automate this process?

 

Thank you

Reply
430 Views
5 Replies
Replies (5)

Mirtchii
Advocate
Advocate

Just curious but can I ask why you want this dimension to be automated?

Because we all know that if you make a drawing from a 3D model, when the model change, the drawing will automatically update all the dimension.

0 Likes

Anonymous
Not applicable

Yes the value of the dimension will change when we change the model ofcourse. 

I just try to learn if i can automate the process of puting there dimension markers instead of doing it myself from annotations.

Anonymous
Not applicable

I do something like this to pull my model parameters into my drawing, though I use them to populate a table.

 

Dim oParameters As Parameters = oModelRefDoc.ComponentDefinition.Parameters

Dim OALHeight As Parameter = oParameters.Item("OALHeight")

 

Of course oModelRefDoc has been defined to be the document I want to pull the parameter from. Is there a reason the standard dimension will not work for you? You can automate placing dimensions as well by using different code.

Hope this helps,

Chancellor

 

0 Likes

Anonymous
Not applicable

Automating placing dimension can be the solution to this. I am actually trying to automate placing dimension now.

Any ideas?

0 Likes

Anonymous
Not applicable

See the solution here for placing a dimension with iLogic: https://forums.autodesk.com/t5/inventor-customization/ilogic-create-dimension-in-drawing/td-p/676283...

 

Really what is happening is we are adding dimensions to work points attached to the geometry, not necessarily the geometry itself. To make sure these points are in the right spot I would use a work plane tangent to the body and one perpendicular to that work plane along the axis your view is looking at. Then use the intersection of these work planes to define a work point that will then be tied to the model. Do the same to both the inside and outside, rename the work points, and make sure your view and work point names match in the code.

-Chancellor

0 Likes