(vbs) VbScript documentation for ACA and AMEP

(vbs) VbScript documentation for ACA and AMEP

jtm2020hyo
Collaborator Collaborator
1,153 Views
4 Replies
Message 1 of 5

(vbs) VbScript documentation for ACA and AMEP

jtm2020hyo
Collaborator
Collaborator

I am trying to find documentation for VbScript in AutoCAD Architecture and AutoCAD MEP because I have not same or similar results when I am trying run some scripts samples like other pages.

 

For example, here some loops:

 

https://www.educba.com/loops-in-vbscript/

 

return error:

 

jtm2020hyo_0-1634828749492.png

 

Anyone could share any document to learn how to use VBS in ACA and AMEP???

 

 

0 Likes
1,154 Views
4 Replies
Replies (4)
Message 2 of 5

Ed__Jobe
Mentor
Mentor

I assume you mean that the property set data is not changing when your script runs. The problem is that x is not a property. It's just a local variable in your code. You have to refer to a property by using its name in brackets, like "[Total]". To insert a definition, use the Insert Property Definitions panel in the lower left of the dialog you showed. See this post for reference and sample code.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 5

jtm2020hyo
Collaborator
Collaborator

as far as i got, the VBS need leave a "RESULT =", for example, here already do not leave error but this is already not a loop (expected result = "11111")

 

here another sample:

 

jtm2020hyo_0-1634833484869.png

 

but is not possible recreate another samples than works in a notepad:

 

 

PD: sample attached in the link above.

0 Likes
Message 4 of 5

Ed__Jobe
Mentor
Mentor

Show a screen capture with the whole dialog showing. Don't cut off the bottom half.

 

Do you want the result to print in the command line or are you trying to change a AEC property? The whole purpose of running a vbscript as a property set definition is to set the value of a property.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

Message 5 of 5

jtm2020hyo
Collaborator
Collaborator

here the complete image, I did not used Insert Property Definition:

 

jtm2020hyo_0-1634860230771.png

 

... and I wish to use in a future both (for print and change AEC properties).

 

0 Likes