Showing results for 
Search instead for 
Did you mean: 

Why part color cannot be edited after running the script


 After I changed the part color by using the script, the part color cannot be changed any more interactively neither in VisMockup or with the code. Seems the color is locked after assigning the material. Any help to solve this? below is the code I used to assign the color.


param (

$VisObj = New-Object -ComObject VFFrame.Application
$VisApp = [System.__ComObject].InvokeMember("VisAppAutomation", [System.Reflection.BindingFlags]::GetProperty, $null, $VisObj, $null)

$material = $VisApp.ActiveView.RootNode.BasicMaterial
$material.Ambient.Red = $R
$material.Ambient.Green = $G
$material.Ambient.Blue = $B
$material.Diffuse.Red = $R
$material.Diffuse.Green = $G
$material.Diffuse.Blue = $B
$VisApp.ActiveView.RootNode.BasicMaterial = $material


Thank you.




Re: Why part color cannot be edited after running the script

Siemens Genius Siemens Genius
Siemens Genius

Not sure what is going on here but I am not aware of any JT file setting that locks color in a JT file. Suspect this is an application level setting

Mike Z

What is JT?

JT is the World’s Most Widely Used 3D File Format for PLM

JT is the common language of PLM and is the world’s most widely used 3D format. JT is the first ISO International Standard ( IS 14306-1) for 3D visualization and collaboration. Compact and accurate, JT is used throughout the product development lifecycle in all major industries to communicate the critical design information typically locked up inside a CAD file.

Siemens PLM Software customers rely on JT to be the most robust 3D visualization format available.

JT Open Factsheet
JT Open Member Resources
JT Open Documentation Technology
JT Open File Format Technology
JT Open Toolkit

Downloadable viewers for Windows Desktop, Windows 10 Universal App, Android and iOS.

Download JT2Go for your platform today Download JT2Go Desktop 64 Bit all languages
Download JT2Go Desktop 32 Bit for English
Windows 10 JT2Go Universal App
Android JT2Go