Problem in saving CustomGraphicsPointSet elements

rbin_robotik
Contributor

Problem in saving CustomGraphicsPointSet elements

rbin_robotik
Contributor
Contributor

Hello,

 

I am having an issue while saving CustomGraphicsPointSet elements. Using an add-in, I am creating CustomGraphicsPointSets. They become visible immediately on the UI immediately after I create them. However, after I save the document and reopen it, the CustomGraphicsPointSet won't show up on the UI.  I also see an empty CustomGraphicsGroups under the root component after reopening the file as if it was never created.

 

What could be the problem?

 

Thanks,

1 Like
Reply
Accepted solutions (1)
396 Views
2 Replies
Replies (2)

BrianEkins
Mentor
Mentor
Accepted solution

All custom graphics are temporary and are never saved with the document. If you want them to seem to the user like they are always there, you can instead save the coordinates of the points in an attribute in the document. Your add-in will handle the event for when a document is opened and will check to see if this attribute exists. If it does, it will read the attribute, extract the coordinates, and draw the graphics.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
1 Like

rbin_robotik
Contributor
Contributor

Thanks for the reply, @BrianEkins!

 

 

0 Likes