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

C# Existing block attributes to new block.

0 REPLIES 0
Reply
Message 1 of 1
Cald
320 Views, 0 Replies

C# Existing block attributes to new block.

 Good Day,

 

I'm working on a programme that inserts a block (Already on the Block Table) to a point the user clicks on, this is working fine by creating a new block reference of the block at the new insert point, see programme segment below. The only problem is that the original block has two attributes (text blocks) and the newly created block has no attributes.

I've tried a few append attribute reference commands but either nothing happens or I'm getting errors.

Could someone show me a method they would use to get the attributes from the old block to the new?

Note I would liko change the value of the first attribute to a pre-calculated double value (variable named ptDisp), and the second attribute value to " ". Without the programme asking and waiting for user input. If you could also show me how that would be done as well I would be grateful.

 

Capture.PNG

 

 

Thank you.

0 REPLIES 0

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost