Jump to content
Carles Olle

ovThumbnailView and ovThumbnalRender object variable values

Recommended Posts

Hi,

 

Does anybody know which are the values for object variables:

const short ovThumbnailView    = 1152;    // short    write only - The Resource Browser's thumbnail view for a symbol - Public for VS
const short ovThumbnailRender  = 1153;    // short    write only - The Resource Browser's thumbnail render for a symbol - Public for VS

 

I did try to set them up with a bunch of values (0, 1, 2, etc.) but it does not seem to work with this code:

 

vs.BeginSym("{} Picture Symbol".format(pictureName))
picture = vs.CreateCustomObject("Picture", 0, 0, 0)
vs.SetName(picture, pictureName)
vs.EndSym()
symbol = vs.GetObject("{} Picture Symbol".format(pictureName))

vs.SetObjectVariableInt(symbol, 1152, 3) #Thumbnail View - Front
vs.SetObjectVariableInt(symbol, 1153, 2) #Thumbnail Render - OpenGL

 

Somehow I don't seem to be able to find this information.

Any ideas?

 

Thanks

--Carlos

Share this post


Link to post

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.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...