I have a Geometry Import object in Mechanical and want to get the Source and Type information as shown in the Details of the object.
How can I do this with Mechanical Scripting?
For the Source there are two ways to approach this:
Input: DataModel.Project.Model.GeometryImportGroup[0].PropertyByName('CADFile').InternalValue Output: 'D:\Tests\SYS.scdoc' or Input: DataModel.Project.Model.GeometryImportGroup[0].GetGeometryURI() Output: 'D:\Tests\SYS.scdoc'
For the Type:
Input: DataModel.Project.Model.GeometryImportGroup[0].PropertyByName('CADType').InternalValue Output: 'SpaceClaim'