Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem in saving CustomGraphicsPointSet elements

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
rbin_robotik
168 Views, 2 Replies

Problem in saving CustomGraphicsPointSet elements

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,

2 REPLIES 2
Message 2 of 3
BrianEkins
in reply to: rbin_robotik

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
Message 3 of 3
rbin_robotik
in reply to: rbin_robotik

Thanks for the reply, @BrianEkins!

 

 

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report