 |
DATAKIT API
V2025.4
|
|
Go to the documentation of this file.
220 int stepw_AnchorInstanceID( const
int inUserID );
DtkErrorStatus stepw_CreateReferenceToGroup(stepw_ER &inOutElementReference, const int inEntityID, const int inProductID)
Creates a reference to an entity located in the designated Product/Part context. The reference target...
DtkErrorStatus stepw_SetModeInfoFirstFace(bool inModeInfoFirstFace)
On a solid or shell, allows the spreading of its first available face graphical attributes to the who...
uint32_t Dtk_ID
Definition: define.h:691
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
void * m_pData
Definition: stepw.hpp:446
Dtk_ErrorStatus stepw_AddOverrideInstanceInfo(stepw_ERP &inElementReferencePath, Dtk_InfoPtr &inOverrideInfo)
Assigns information on an instance in multi-level assembly context.
DtkErrorStatus stepw_InitProduct(const Dtk_string &inProductName, int &outAssignedID, Dtk_ID inProductUserID=0)
Initializes the definition context of a product.
void * m_pData
Definition: stepw.hpp:439
DtkErrorStatus stepw_AddInstanceToPath(stepw_ERP &inOutElementReferencePath, const int inInstanceID)
Appends an instance identifier to the element reference path. The instance identifier is provided by ...
DtkErrorStatus stepw_SetProductLayerInfosSet(const Dtk_LayerInfosSetPtr inLayerInfoSet)
Sets the LayerInfosSet to refer to when writing the current product. It uses its mapping between laye...
DtkErrorStatus stepw_Write3DConstructionGeometry(const Dtk_BodyPtr &inBody)
Writes a body as a construction geometry of a 3D part, of any kind (solid, shell / faces,...
Definition: stepw.hpp:443
DtkErrorStatus stepw_WriteAssemblyInstances(const int inID)
Writes instances detained by a product.
DtkErrorStatus stepw_Write3DPartMesh(const Dtk_MeshPtr &inMesh)
Writes a mesh of a 3D part (3D content of a product).
Dtk_ErrorStatus stepw_SetContextTolerance(const double inTol)
Sets length tolerance for the 3D geometry (uncertainty).
This is a high level string class.
Definition: dtk_string.hpp:58
DtkErrorStatus stepw_SetInstanceUserID(const int inInstanceID, const int inInstanceUserID)
Sets the designated instance its user-defined identifier.
Dtk_ErrorStatus stepw_DefineInstancePath(stepw_ERP &inOutElementReferencePath, const Dtk_tab< Dtk_ID > &inInstancePath, const bool unused=false)
Define the whole instance identifier sequence of the element reference path.
int stepw_WhichInstanceID(const int inUserID)
Checks if an instance (known by its user-defined identifier), is already registered.
DtkErrorStatus stepw_Write3DPartBody(const Dtk_BodyPtr &inBody)
Writes a body of a 3D part (3D content of a product), of any kind (solid, shell / faces,...
DtkErrorStatus stepw_Write3DPartBodyWithMesh(const Dtk_BodyPtr &inBody, const Dtk_MeshPtr &inMesh, const int inMode=0)
Writes a body of a 3D part (3D content of a product), associated with a mesh.
Dtk_ErrorStatus stepw_WriteExternalReference(const int inID)
Writes a product as an external reference. Only one per file for a given product.
DtkErrorStatus stepw_EndProduct(const int inProductID)
Ends the writing of a product - calls WriteAssemblyInstances if not yet done.
DtkErrorStatus stepw_SetModeProp(const int inMode)
Activates/Deactivates writing of properties : User Attributes, Product Data.
SetAsDeprecated("2025.4", "Use stepw_SetInstanceUserID instead.") DtkErrorStatus stepw_SetAnchorInstance(const int inInstanceID
DtkErrorStatus stepw_Write3DPartMeshFromBody(const Dtk_MeshPtr &inMesh, const Dtk_BodyPtr &inBody)
Writes a mesh of a 3D part (3D content of a product), coming from a body, without writing the body it...
Dtk_string stepw_GiveUniqueFileName(const Dtk_string &inFileName)
Creates a unique file name for an external reference - applies to the current session (stepw_InitFile...
Dtk_ErrorStatus stepw_Add3DPartProperty(const Dtk_MetaDataPtr &inProperty)
Adds a roperty to a part (default), or to an entity, according to InitPropertySet mode.
DtkErrorStatus stepw_SetReferencePath(stepw_ER &inOutElementReference, stepw_ERP &inElementReferencePath)
Assigns the element reference path to the element reference.
DtkErrorStatus stepw_InitFile(const Dtk_string &inFileName, const char *inOriginatingSystem=" user ", const int inSchema=0)
Initializes a file to be written.
DtkErrorStatus stepw_CreateReference(stepw_ER &inOutElementReference, const int inEntityID, const int inProductID=0, const char *inReferenceKind="")
Creates a reference to an entity located in the designated Product/Part context, or current context i...
const Dtk_FdtPtr & inFDT
Definition: stepw.hpp:401
int stepw_AnchorProductID(const int inUserID)
Finds the product having an ANCHOR section, by user identifier.
Dtk_ErrorStatus stepw_AddExternalReference(const Dtk_string &inProductName, const Dtk_string &inFileName, int &outID, Dtk_ID inInstCompId=0)
Declares a product to be written as an external reference (separated file).
DtkErrorStatus stepw_SetModeFdt(const int inMode, const int inPolyline=2)
Activates/Deactivates writing of FDT.
DtkErrorStatus stepw_Init3DPart(const int inProductID)
Initializes the writing of a 3D part for the designated product.
DtkErrorStatus stepw_AddInstanceWithInfo(const int inFatherProductID, const int inChildProductID, const Dtk_transfo &inPosition, const Dtk_string &inInstanceName, const Dtk_InfoPtr &inInstanceInfo)
Adds an instance of a product ( child ) in an assembly product ( father ), with provided attributes.
DtkErrorStatus stepw_AddInstance(const int inFatherProductID, const int inChildProductID, const Dtk_transfo &inPosition, const Dtk_string &inInstanceName)
Adds an instance of a product ( child ) in an assembly product ( father ).
DtkErrorStatus stepw_Add3DPartFDT(const Dtk_FdtPtr &inFDT)
Adds a FDT in the current part context.
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
DtkErrorStatus stepw_SetPartProperties(const Dtk_InfoPtr &inInfo, const int inItem)
Defines properties to be attached directly to the product : considers the list of Dtk_Val in the Dtk_...
DtkErrorStatus stepw_SetModeItemName(const int inMode)
Selects a mode for topological 3D items naming policy (shells, faces, edges ).
DtkErrorStatus stepw_SetAnchorProduct(const int inProductID, const int inUserID)
Declares the product as having an ANCHOR section. If the designated product is already declared as su...
Definition: util_ptr_dtk.hpp:37
DtkErrorStatus stepw_EndFile()
Ends the writing of the current STEP file.
DtkErrorStatus stepw_End3DPart()
Ends the writing of a product 3D part.
DtkErrorStatus stepw_Write3DAxisSystem(const Dtk_AxisSystemPtr &inAxis)
Writes an axis system of a 3D part, in STEP, it is a construction geometry based on an axis placement...
DtkErrorStatus stepw_AddReference(stepw_ER &inElementReference)
Registers the previously created element reference in the writer.
Dtk_ErrorStatus stepw_Add3DModelDisplay(const Dtk_ModelDisplayPtr &inModelDisplay, const int inMode)
Adds a view ( Dtk_ModelDisplay ) in the current part context.
DtkErrorStatus stepw_Write3DPartRoot()
DtkErrorStatus stepw_CreateReferenceToFdt(stepw_ER &inOutElementReference, const int inEntityID, const int inProductID)
Creates a reference to an entity located in the designated Product/Part context. The reference target...
Dtk_ErrorStatus stepw_SetContextUnit(const int inLength, const int inAngle=0)
Sets file units in which the geometries, properties are to be written.
This is a high level array class.
Definition: util_stl_dtk.hpp:85
Definition: stepw.hpp:436
DtkErrorStatus stepw_CreateInstancePath(stepw_ERP &inOutElementReferencePath)
Initializes a path for the element reference, identifying the sequence of instances to pass through.
DtkErrorStatus stepw_SetHeaderData(const int inNumItem, const wchar_t *inValItem)
Sets STEP file header fields value.
DtkErrorStatus stepw_CreateReferenceToNode(stepw_ER &inOutElementReference, const int inNodeID, const int inProductID=0, const char *inReferenceKind="")
Creates a reference to a whole node (Dtk_Node), located in the designated Product/Part context.
Dtk_tab< Dtk_dir > Dtk_ID Dtk_InfoPtr inInfo
Definition: pdfw.hpp:676
DtkErrorStatus stepw_SetModeCompress(const int inMode)
Selects a mode of writing compact or compressed step files.
const int inInstanceUserID
Definition: stepw.hpp:208
void stepw_EndNodeContext(const int unused=0)
Ends current node context.
Dtk_tab< Dtk_dir > Dtk_ID & outID
Definition: pdfw.hpp:675
Dtk_string stepw_GiveUniqueProductName(const Dtk_string &inProductName)
Creates a unique product name.
const Dtk_string & inInstanceName
Definition: catiav5w.hpp:621
Dtk_ErrorStatus stepw_SetConversionLengthUnit(const int inLength)
Sets file units in which the geometries, properties are to be written, and apply the conversion facto...
Dtk_ErrorStatus stepw_InitPropertySet(const int inMode)
Sets attachment mode for next property writing : the whole Part, or to the following entity to be wri...
void stepw_InitNodeContext(const int inNodeID)
Initializes the context to write entities in a node.
Dtk_ErrorStatus stepw_AddAnchorItem(const int inEntityID, const int inProductID, const Dtk_string &inGUID)
Registers an entity in the ANCHOR section, with an assigned GUID (optional).
Dtk_ErrorStatus stepw_SetNextSubBody(const int mode)
int stepw_WhichProductID(const Dtk_string &inProductName)
Checks if a product (known by its unique name), is already registered.