Named Geometry doesnt work with Sheet metal flat pattern

Named Geometry doesnt work with Sheet metal flat pattern

anuprasad_kkh
Observer Observer
333 Views
3 Replies
Message 1 of 4

Named Geometry doesnt work with Sheet metal flat pattern

anuprasad_kkh
Observer
Observer

Hi Community,

I have been trying to automate my sheet metal drawings, unfortunately i cant assign names to flat pattern edges and corners to call that for dimension in drawing. Can anybody tell any other way to achieve this. Is it possible to add work points in flat pattern and call it in drawing as entity?. It would be helpful if somebody can guide me through any code for that

0 Likes
334 Views
3 Replies
Replies (3)
Message 2 of 4

WCrihfield
Mentor
Mentor

Hi @anuprasad_kkh.  I had never noticed that when working on a sheet metal part, and currently in edit mode for the flat pattern, it does not offer you the 'Assign Name' option within the right-click menu when you have a face, edge or vertex selected.  The flat pattern in a sheet metal part is sometimes a bit more complicated to work with when accessing it by code, because it is like its own separate ComponentDefinition, separate from the main SheetMetalComponentDefinition.  The FlatPattern object type itself is derived from the ComponentDefinition object type.  So, the FlatPattern can have its own set of Parameters (and other things) that are not available while editing the folded part.  With this in mind, the 'Assign Name' functionality is just assigning a specifically named AttributeSet with a specifically named Attribute in it, and setting the Value of that Attribute to the name you specify.  So, you could just use your own different/custom code routine to assign names to the objects in the FlatPattern yourself, if you needed to.  There are several examples of codes for that task here on this forum, but I may also be able to help you with something like that if needed.  But since I do not do a lot of drawing automation, I can not 100% guarantee that it will work as intended, since I have not tested it on a flat pattern drawing view like that before.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 4

WCrihfield
Mentor
Mentor

Hi @anuprasad_kkh.  Out of curiosity, I did some quick testing on a test sheet metal part.  I used an iLogic rule, and the built-in NamedEntities tool to assign names to Faces, Edges, or Vertex items while in edit mode of the flat pattern.  At this time, I had not assigned names to any entities within the folded model yet.  After assigning names to some things in the flat pattern edit mode, the 'Entities' tab does not show up in the iLogic DockableWindow, but it does show up when I switch back to editing the folded model.  However, when I go to that 'Entities' tab, then select any of those entities in the list below that, which were assigned names in the flat pattern, it threw up a somewhat serious error message.  So, that exact route (using the built-in NamedEntities tool to assign the names) is not going to work.

 

However, you may still be able to use a different means to assign names to those entities, if it was really important.  You would have to do it the 'old' way (longer code process), and use different names for the AttributeSet and Attribute objects when you do it.  But when you do it using different names for the AttributeSet and Attribute, as I am suggesting, then the iLogic shortcut snippets for creating dimensions, which allow you to directly specify those entity names, will not work with those names you assigned that way.  There is still a way to find the named entities and make the dimensions reference them, but the other way requires quite a bit more code and complication, so I am not sure if it would be worth while for you, and would require having to potentially use two different systems within your existing code to make things work, depending on if it is a regular view, or if it is a view of a flat pattern.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 4 of 4

anuprasad_kkh
Observer
Observer

Hi @WCrihfield,

Thank you for your detailed reply. It seems a lot of efforts required to achieve the result. I ll leave it aside now. Hope Autodesk will come up with solution for this in newer updates.

0 Likes