Where and How to save selections made previously, and then you can load them.

Where and How to save selections made previously, and then you can load them.

Crstiano
Collaborator Collaborator
380 Views
4 Replies
Message 1 of 5

Where and How to save selections made previously, and then you can load them.

Crstiano
Collaborator
Collaborator

I want create a routine where it keeps the previously selected faces and loads when the routine is run.
Where and How to save these selections, and then you can load them? (3rd, attributes, proxies, etc ?)


Example similar FEA Simulation, it keeps in an external file and then loads it faces and all data.

 

What the better way?

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


Cristiano Oliveira
EESignature
ConsultCAD.com

0 Likes
381 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

You could save them in a registry key as an array, en read it into an array to make the selection.

0 Likes
Message 3 of 5

Crstiano
Collaborator
Collaborator

Hi Frederic,

Your idea i believe is that error for my app, because other users acess the file too. All in network. So, the registration must be done in the assembly. (my opinion)

 

My idea is save the planes selected in 3rd party: type xml or txt

 

So, my way the concept:

 

 - Create Form and buttons for Select planes

 - get planes selected , create proxie and attribute for id in the case have Assembly update.

 - create 3rd party in the Assembly

 - write the information of the attributes and proxies

 - save file

 

When user re-run the routine:

 - Read the information in the 3rd party

 - load buttons with informations, for case user want change

 

Can anyone tell me if this would be the best way for this script?

 

Thanks in advance

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


Cristiano Oliveira
EESignature
ConsultCAD.com

0 Likes
Message 4 of 5

rjay75
Collaborator
Collaborator

You can get a reference key that you store for each plane and save that in an AttributeSet in the document.

 

Select the Planes

Get Reference Key for each plane

Store Serialized Reference Keys in an Named Attribute plus any other information.

 

See:

http://adndevblog.typepad.com/manufacturing/2012/07/reference-keys-in-inventor.html

http://adndevblog.typepad.com/manufacturing/2012/12/componentoccurrence-contexts-and-reference-keys....

 

 

 

Message 5 of 5

Anonymous
Not applicable

You can add attributes to the selected faces. and use that to save your data.

http://modthemachine.typepad.com/my_weblog/attributes/