Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello, I am looking to set "Justify" property of DxfAttributeDefinition object from codebehind in c# just as mentioned below:
Dim attribDef As New DxfAttributeDefinition(textValue, Center, Height)
and also Dim attrib As DxfAttribute = New DxfAttribute(attribDef, textValue)
But in none of the above objects i am getting "Justify" property. Please let me know how can i set it.
Thanks,
Posted

1 solution

Okay we need to check which Autocadd library you are using

DxfAttributeDefinition is used by WoutWare CadLib libraries
DxfAttribute is also included in WoutWare CadLib libraries

So I am going to guess it is that one.

When you ask these sorts of questions it is important you tell people what library package you are using, your question makes no sense without that detail.

Assuming I have the right library package a normal assignment process looks like this

C#
DxfAttributeDefinition attribTag = new DxfAttributeDefinition('Tag', new Point3D(0, 0, 0), 5.0);
attribTag.Text = 'Tag';
attribTag.PromptString = 'Enter the tag';
attribTag.VerticalAlignment = TextVerticalAlignment.Middle;
attribTag.HorizontalAlignment = TextHorizontalAlignment.Center;


That comes straight from the WoutWare CadLib manual :-)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900