Jump to content
avictorgm

New symbol with field value

Recommended Posts

In other Topic you got me on the way to read the value of the databank of a symbol.

 

Now the problem is exactly the contrary.

 

I want to create a new symbol with 200 written in the textfield, but comes 60!

 

 

Lasten = 200Kg

 

the databank is named: "LOADS_DB"

The field of the databank is named: "Lasten"

 

 

but somehow that leaves  another totally different number in the field Lasten---> 60

 

I feel the problem is in the last line of code.

 

Any help?

 

image.thumb.png.977489aa20b4131e8b018250127a57b6.pngimage.thumb.png.0a56a2bca5e7ca1289dc67579b95caf0.png


vs.SetRField(SYMBOLO2,'LOADS_DB','Lasten', vs.Num2StrF(Lasten2))

 

 

 

 

image.png

image.png

Edited by avictorgm

Share this post


Link to post

OK Forget it.

 

I GOT it!!

 

The problem comes with the value of Lasten---> you need to correct with :   vs.Num2Str(decPlace, v)   ---->   vs.Num2Str(0, Lasten2)

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...