Hello everyone.
Can VBScript in property sets work with conditions with text values?
It's my example
RESULT="--" On Error Resume Next Set oApp=GetObject(, "AutoCAD.Application") Set oCivilApp=oApp.GetInterfaceObject("AeccXUiPipe.AeccPipeApplication.13.2") Set obj=oCivilApp.ActiveDocument.HandleToObject("[Обработка]") If [TestString] = "testValue" Then RESULT = "yes" Else RESULT = "no" End If
This example returns me "no" but I expect "yes", even if my object has "testValue" in TestString parameter.
I attach test example. Thank you in advance.
Solved! Go to Solution.
Solved by Jowennl. Go to Solution.
Hi @psvTPWNK ,
Yes this is doable. Make it String = String, you just need to add "......"
If "[TestString]" = "testValue" Then
See sample animated gif.
Make it Str = Str by adding " "
Cheers,
Jowenn
Jowenn Lua | Retired Account See My New Profile Here
AU 2023 CES600726 – Getting Started with Generative Design in Civil 3D: A Beginner’s Guide
AU 2020 CES473668 – Supercharge Your Dynamo Graph with Civil 3D Toolkit
AU 2019 CES319333 – Dynamo in Civil 3D Introduction Unlocking the mystery of scripting
AU 2018 CI225967 – Using Automation in Civil 3D for Construction Documentation and Exports
AU 2017 CI123653 – AutoCAD Civil 3D and Subassembly Composer— Real-World-Practice Tips and Tricks
Can't find what you're looking for? Ask the community or share your knowledge.