.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Insert Attribute

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
297 Views, 2 Replies

Insert Attribute

Hi,

When I am using the following code to insert an attribute of a block br and
I set the the horizontalmode then the Attribut is always drawn at the
insertion point of the block

If I discard that line (so, not setting the horizontalmode) then the
attribute is positioned at the right place, but the horizontalmode is not
according to the one defined in de block definitiion ?

What's going wrong ? Is there a better way to insert the attribute ?

Dim attDef As AcDb.AttributeDefinition = CType(ent,
AcDb.AttributeDefinition)

attRef.Position = New AcGe.Point3d(attDef.Position.X * Scale +
(br.Position.X), attDef.Position.Y * Scale + (br.Position.Y),
attDef.Position.Z * Scale + (br.Position.Z))attRef.Height = attDef.Height

attRef.Rotation = attDef.Rotation + angle

attRef.TextStyle = attDef.TextStyle

attRef.HorizontalMode = attDef.HorizontalMode
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Have a look at SetAttributeFromBlock method of AttributeReference.

Regards - Nathan
Message 3 of 3
Anonymous
in reply to: Anonymous

tnx,

that was what i'was looking for


schreef in bericht news:5546451@discussion.autodesk.com...
Have a look at SetAttributeFromBlock method of AttributeReference.

Regards - Nathan

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Autodesk Design & Make Report