AutoCAD Plant 3D Forum
Welcome to Autodesk’s AutoCAD Plant 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Plant 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create a Custom Property that works on a numeric count

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
cfalkowski
236 Views, 3 Replies

Create a Custom Property that works on a numeric count

Hey Plant 3D Team,

 

I am trying to create a property in the Plant 3D Class Definitions that auto assigns a number as each component is created and never reuses the same number. essentially acts as a unique identifier number for all of the model components in the project.

 

Thoughts???

 

cfalkowski_0-1706889175328.png

 

Thanks,

Labels (6)
3 REPLIES 3
Message 2 of 4
DVaquand
in reply to: cfalkowski

Hello

 

You can use the "PnPID" property which assigns a unique number for each object.
To create this property type the command “PLANTDEFINECALCPROPERTIES”
After creating this property, remember to make it read-only in the class configuration

 

DVaquand_0-1706896461349.png

 

DVaquand_1-1706896479512.png

 

 

 

== French ==

 

Vous pouvez utiliser la propriété "PnPID" qui attribue un numéro unique pour chaque objet.
Pour créer cette propriété tapez la commande "PLANTDEFINECALCPROPERTIES"
Après avoir créé cette propriété, pensez à la rendre en lecture seule dans la configuration des classes

Cordialement
Dominique VAQUAND
www.dovaq.fr


Si mon message propose une solution, veuillez cliquer sur "Accepter comme solution"
If my post offers a solution, please click "Accept as Solution"

Cette publication vous a-t-elle été utile ? N’hésitez pas à attribuer la mention J’aime à cette publication.
Avez-vous obtenu la réponse à votre question ? Cliquez ensuite sur le bouton ACCEPTER LA SOLUTION.

EESignature

Message 3 of 4
cfalkowski
in reply to: DVaquand

Thanks for the Reply! 

 

I'm assuming I will need to be running at least AutoCAD Plant 3D 2023 to be able to add these calculated properties? 

 

Thanks,

Message 4 of 4
DVaquand
in reply to: cfalkowski

Hello

 

This "PLANTDEFINECALCPROPERTIES" command works on versions prior to 2013.
From 2013 onwards, it is possible to create calculated class properties directly from the project configuration.

 

== French ==

 

Cette commande "PLANTDEFINECALCPROPERTIES" fonctionne sur des versions antérieures à 2013.
A partir de 2013, il est possible de créer directement, depuis la configuration de projet, des propriétés de classe calculée.

 

Cordialement
Dominique VAQUAND
www.dovaq.fr


Si mon message propose une solution, veuillez cliquer sur "Accepter comme solution"
If my post offers a solution, please click "Accept as Solution"

Cette publication vous a-t-elle été utile ? N’hésitez pas à attribuer la mention J’aime à cette publication.
Avez-vous obtenu la réponse à votre question ? Cliquez ensuite sur le bouton ACCEPTER LA SOLUTION.

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report