Author Topic: Set a default attribute value  (Read 1756 times)

0 Members and 1 Guest are viewing this topic.

TimBlanch

  • Guest
Set a default attribute value
« on: September 08, 2011, 02:45:39 PM »
I have been doing some searching and for some reason I can not seem to locate the answer. Can someone tell me how to set the default value for a block attribute using C#? I can set the tag, prompt and textstring with no problem.

Thanks,
Tim

kaefer

  • Guest
Re: Set a default attribute value
« Reply #1 on: September 08, 2011, 03:00:00 PM »
how to set the default value for a block attribute using C#? I can set the tag, prompt and textstring with no problem.

Did you try the TextString property of the AttributeDefinition?

TimBlanch

  • Guest
Re: Set a default attribute value
« Reply #2 on: September 08, 2011, 04:15:26 PM »
Ok, I get it now. Set the textstring on the block definition and it becomes the default value.

Thanks

Rojek

  • Guest
Re: Set a default attribute value
« Reply #3 on: September 09, 2011, 04:03:01 AM »
I have some problem with setting position of dynamic bloc attributes but for You it should work fine. - look at this post: http://www.theswamp.org/index.php?topic=39416.0