Function Statement (VBScript)

Function Statement (VBScript)

jtm2020hyo
Collaborator Collaborator
616 Views
1 Reply
Message 1 of 2

Function Statement (VBScript)

jtm2020hyo
Collaborator
Collaborator

I did not find any method to use Function Statement (VBScript) inside Property Set Definition's formulas

 

jtm2020hyo_0-1697552830137.png

 

I tried everything on the internet but no results, anyone could share some samples?

 

0 Likes
Accepted solutions (1)
617 Views
1 Reply
Reply (1)
Message 2 of 2

Gepaha
Collaborator
Collaborator
Accepted solution

I've been using property set definitions since they were implemented and I've never seen an example of using Function.
The subject has been discussed in the past, including an answer by Martin Schmid in https://forums.autodesk.com/t5/autocad-mep-forum/vbscript-in-property-sets/td-p/1387227.
I think that in property set external functions or variables cannot be passed.
The formula property already acts as a function returning the value through RESULT.
If there is something that cannot be resolved with a formula property then implement it through .NET, that's what I do.