Property set formula definition

Property set formula definition

Yonas89
Collaborator Collaborator
3,085 Views
8 Replies
Message 1 of 9

Property set formula definition

Yonas89
Collaborator
Collaborator

Hello I'm trying to define start point elevation of pipe as property in property sets. Can somebody please tell me what's wrong with my formula, because I do not get any result in the end.

 

 

Capture2.PNG

 

Capture.PNG

0 Likes
3,086 Views
8 Replies
Replies (8)
Message 2 of 9

Yonas89
Collaborator
Collaborator

Also I have also noticed that my VBScript code area is empty. Shouldn't it contain some vb scripts?

0 Likes
Message 3 of 9

cwr-pae
Mentor
Mentor

Make sure the [objecteID] statement is a link (should have a light grey mask). If not delete it and double click thee object id in the tree under insert property definition. And make sure the ("AeccXUiLand.AeccApplication.13.0") statement matches your version (13.0 is version 2018/2019). I assume the obj.startpoint.z result statement is correct. You want always see a sample result for correct formulas. Attach the data to an appropriate item and see if it reports the info. It may be better to use the object handle vs the object ID.

I think the vbscript would be some code you  inserted in to the formula.

0 Likes
Message 4 of 9

Yonas89
Collaborator
Collaborator

@cwr-pae thanks a lot for your reply. Unfortunately none of your advice has helped. It's strange that some properties work and some don't, as in attached imaged below:

 

Capture.PNGCapture2.PNG

Also how could I import some vbscript?  Because I cannot figure it out. I think it should be a prebuild list of vbscripts available as in this reference: https://knowledge.autodesk.com/support/autocad-architecture/learn-explore/caas/CloudHelp/cloudhelp/2...

0 Likes
Message 5 of 9

cwr-pae
Mentor
Mentor

Something objects require pick more than just the basic object to be applied to. I don't remember what objects needed more than one applied to selection, but some have. Try applying the properties to everything, if it functions you know where to take off from, if it doesn't at least you have eliminated on possible error.

It looks like you are applying this to pipe networks, take look on the C3D customization forum, there was a thread on Data Sets for Pipes and Structures. I think it was here. Also post there, a guy named Drazen.galic seems to know a lot on the Data Sets.

I'll admit, when it comes to vbscript I am lost.

Message 6 of 9

Yonas89
Collaborator
Collaborator

@cwr-pae  thanks for the link.  Referring to vbscript and property sets itself I think Autodesk could provide more documentation about it. 

0 Likes
Message 7 of 9

keith_sowinski
Advocate
Advocate

If this is for pipe networks, it looks like you are referencing the wrong application.  You should be referencing AeccXUiPipe.AeccPipeApplication.13.0.

 

Also to get the VBScript samples download the ADT_VBScript.xml and place it in your AutoCAD install directory.  See this forum.  https://forums.autodesk.com/t5/autocad-mep-forum/vbscript-code-s-are-missing/td-p/2168163

 

If this solves your issue, please mark it as resolved.

Message 8 of 9

Yonas89
Collaborator
Collaborator

@keith_sowinski,

yes, I know that it was the wrong referenced dll for pipes. However thanks a  lot for the link for vb scripts! 

0 Likes
Message 9 of 9

denmark_cunadoU8KXE
Explorer
Explorer

How did you get the 3D length?

0 Likes