cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Search a model tree and change the color of parts found

Former Member
0 Likes
267

I am not new to SAP 3D Visual Enterprise Author 8.0 x64....

However I am new to some of the scripting abilities. Is it possible to have a script search the model tree and change the color of a parts list?

Accepted Solutions (0)

Answers (1)

Answers (1)

anthony_cassidy
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Corey,

SAP 3D Visual Enterprise Author 8.0 x64 does not have scripting abilities, but the SAP 3D Visual Enterprise Viewer 8.0 32-bit does have scripting abilities.

It is scriptable from javascript in HTML and c#, and other Com compatible hosting environments.

I recommend downloading and installing both the Viewer and the SDK. You can begin this process from the links below:

https://store.sap.com/sap/cpa/ui/resources/store/html/SolutionDetails.html?pcntry=US&sap-language=EN...

https://store.sap.com/sap/cpa/ui/resources/store/html/SolutionDetails.html?pcntry=US&sap-language=EN...

And then checking out some of the examples in your language of choice.

To answer your question regarding changing the color of a parts list. Parts can have their color changed temporarily with the Node.Paint(Color c) method, or changed permanently by changing a Node's Material (eg Node.Material.DiffuseColor = Creator.Color.create(r,g,b)

Regards,

Anthony Cassidy
IMS for Visual Enterprise

SAP New Zealand

151 Queen Street, Auckland, New Zealand.

T +64 93555608 | F | M

mailto:anthony.cassidy@sap.com

www.sap.com

View our ISO 14001 certifications