Jump to content

developer.vectorworks.net - syntax error in python function reference - Boolean Variables wrong


Recommended Posts

Look for example in the following description. In the python syntax all boolean variables are written wrong.

Quote

hObject = vs.Handle()

ok = false

outName = ""

outType = -1

 

ok = vs.IFC_GetPsetInfoAt(hObject, true, 0, outName, outType)

After trying the script on my own, I found out, that "false" and "true" have to be written with a capital 'F' and 'T' and not with a lowercase f or t.

So, 'False' and 'True' is right, not 'false' and 'true'.

 

I guess, that's not the only wrong function reference.

 

https://developer.vectorworks.net/index.php/VS:IFC_GetPsetInfoAt

Link to comment
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...