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

Function Statement (VBScript)

1 REPLY 1
SOLVED
Reply
Message 1 of 2
jtm2020hyo
422 Views, 1 Reply

Function Statement (VBScript)

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?

 

1 REPLY 1
Message 2 of 2
Gepaha
in reply to: jtm2020hyo

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.

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

Post to forums  

Autodesk Design & Make Report