FlatPatternComponent.dataComponent Property

Parent Object: FlatPatternComponent

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


Defined in namespace "adsk::fusion" and the header file is <Fusion/SheetMetal/FlatPatternComponent.h>

Description

Returns the DataComponent associated with this component. The DataComponent provides ID information that can be used to access this component using the MFG DM API. These ID's don't exist until a component has been saved. The ID's are genereated by MFG DM API on the cloud, so there will be a slight delay after saving before the ID's are available. This property returns null in the case the MFG DM API information doesn't exist yet.

When opening a design, the MFG DM API information is obtained from the cloud and as a result may not be available immediately after opening a document. Again, this property will return null in this case too. Essentially, null is returned in all cases where good ID information is not yet available.

Syntax

"flatPatternComponent_var" is a variable referencing a FlatPatternComponent object.

# Get the value of the property.
propertyValue = flatPatternComponent_var.dataComponent
"flatPatternComponent_var" is a variable referencing a FlatPatternComponent object.
#include <Fusion/SheetMetal/FlatPatternComponent.h>

// Get the value of the property.
Ptr<DataComponent> propertyValue = flatPatternComponent_var->dataComponent();

Property Value

This is a read only property whose value is a DataComponent.

Version

Introduced in version May 2024