通过C#证明auto cad中的属性。 [英] Justify property in auto cad through C#.
问题描述
您好,我希望从c#中的codebehind设置DxfAttributeDefinition对象的Justify属性,如下所述:
Dim attribDef作为新的DxfAttributeDefinition(textValue,Center,Height)
和Dim attrib作为DxfAttribute = New DxfAttribute(attribDef,textValue)
但是在上述任何一个对象中我都得到Justify属性。请让我知道如何设置它。
谢谢,
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,
推荐答案
好的,我们需要检查您使用的Autocadd库
DxfAttributeDefinition由WoutWare CadLib库使用
DxfAttribute也包含在WoutWare CadLib库中
所以我猜它就是那个。
当你提出这些问题时,告诉别人你正在使用哪个图书馆包是很重要的,如果没有这个细节,你的问题就毫无意义。
假设我有正确的库包,正常的分配过程如下所示
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
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;
直接来自WoutWare CadLib手册: - )
That comes straight from the WoutWare CadLib manual :-)
这篇关于通过C#证明auto cad中的属性。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!