Jump to content
Developer Wiki and Function Reference Links ×

change value of record field in symbol definition


michaelk

Recommended Posts

Can someone point me in the right direction?

I have a script that successfully

Creates a record format

Creates a symbol folder

Creates a symbol

Attaches the record format to the symbol

Now I'd like to change the values in the fields attached to a symbol. (Eventually, several symbols will use this record format.) The symbol has not been inserted into the drawing. I want to change the values in the symbol definition.

SetRField(symbolHand, nameOfRecordFormat, nameOfField,'This is a test'); doesn't seem to do it.

Is this possible? Do I need to create a different record format with default values for each symbol?

Any ideas?

Thanks!

mk

Link to comment

How can I make sure?

The symbol is not inserted into the drawing. I'm capturing the handle to the symbol with a GetObject immediately after the symbol is created.

symbolHand := GetObject(nameOfSymbol);

Even after SetRField(symbolHand, nameOfRecordFormat, nameOfField,'This is a test'); the symbol definition still has the default record format values.

thanks

mk

Link to comment
  • 5 years 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...