I am trying to output some Custom User Defined Properties. I have defined them like so
WORKORDERNUMBER: {
title : "DE WO NUMBER",
description: "Work Order Number",
//group: 0,
type : "string",
value : "stuff",
//scope : "post"
},
writeComment("WORK ORDER NO.: " + properties.WORKORDERNUMBER);
I get
(WORK ORDER NO.: OBJECT OBJECT )
Hello @ericbUU8RW .
In order to interrogate the value of the property, you must use the getProperty function.
https://cam.autodesk.com/posts/reference/classPostProcessor.html#a8f6be90781835876e83f3f9c3a2a9f2e
Regards.
______________________________________________________________
If my post answers your question, please click the "Accept Solution" button. This helps everyone find answers more quickly!
Hello, @ericbUU8RW .
For new post properties format you need to use special function `getProperty` to get its value instead of specification. So, your example should look like this:
writeComment("WORK ORDER NO.: " + getProperty(properties.WORKORDERNUMBER));
See documentation: PostProcessor Class Reference (autodesk.com)
Can't find what you're looking for? Ask the community or share your knowledge.