Ev3DObjectData Interface
The Ev3DObjectData TS interface defines a blueprint of a JS object that specifies the 3D attributes of a given object in 3D space.
Properties
An Ev3DObjectData object has the following properties:
optional children: Ev3DObjectData[];An array of
Ev3DObjectDataobjects, 3D objects that are the children of the given 3D object.childrenCount: number;A number, the number of the children of the given 3D object.
optional ghosted: boolean;A Boolean, a flag indicating whether the given 3D object is (
true) or is not (false) ghosted.optional isPart: boolean;A Boolean, a flag indicating whether the given 3D object is (
true) or is not (false) a 3D part.optional metadata: Ev3DMetadata[];An array of
Ev3DMetadataobjects, the metadata properties of the given 3D object.name: string;A string, the name of the given 3D object.
objectId: string;A string, the unique ID of the given 3D object across document sessions.
optional parentObjectId: string;A string, the unique ID of the parent object of the given 3D object across document sessions.
type: Ev3DObjectType;A member of the
Ev3DObjectTypeenumeration, a 3D object type of the given object in 3D space.optional visible: boolean;A Boolean, a flag indicating whether the given 3D object is (
true) or is not (false) visible.
Examples
TS
JS
- { children: [{...}, {...}], childrenCount: 2, ghosted: true, isPart: true, metadata: [{...}, ... {...}], name: "Example", objectId: "abc", parentObjectId: "xyz", type: Ev3DObjectType.None, visible: true }
- { children: [{...}, {...}], childrenCount: 2, ghosted: true, isPart: true, metadata: [{...}, ... {...}], name: "Example", objectId: "abc", parentObjectId: "xyz", type: 0, visible: true }