Public Interface IAttributeDef
Dim instance As IAttributeDef
public interface IAttributeDef
public interface class IAttributeDef
Ann attribute definition is an application-specific data packet that is automatically saved with the SOLIDWORKS file and reloaded when the file is opened. An application can create attribute data that is attached to an entity in a SOLIDWORKS document.
The attribute definition describes a template for the data packet. The definition contains the names of the parameters in the attribute, their types and default values. It also allows you to create instances of the definition on entities in your model.
The general sequence of steps in IAttribute creation is to:
Perform Steps 1 through 3 only once for each working session. In other words, perform Steps 1 through 3 when your DLL or EXE is initially loaded or run. Until the DLL is unloaded or the EXE is closed, you can create an unlimited number of instances of the attribute definition.
IAttribute::GetDefinition and IAttribute::IGetDefinition Method
ISldWorks::DefineAttribute and ISldWorks::IDefineAttribute Method
Provide feedback on this topic
SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.
* Required
Thank you for your comments. We will contact you if we have questions regarding your feedback.
Sincerely,The SOLIDWORKS Documentation Team
Print Topic
Select the scope of content to print:
We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.
Web Help Content Version: API Help (English only) 2017 SP05 To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help. To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.