- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
ilogic : Autodimensioning of Drawing
Dear friends.
I am trying to add a thickness dimension to the part below as shown:
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Automating placing dimension can be the solution to this. I am actually trying to automate placing dimension now.
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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