Jump to content


ATTSYNC

blocks attributes

2 replies to this topic

#1 CAD bloke

    Newbie

  • Members
  • Pip
  • 8 posts
  • LocationSydney

Posted 04 September 2012 - 10:19 PM

Greetings

The general practise after you edit a block in BEDIT (actually REFEDIT in AutoCAD) is to sync the attributes of the block inserts to the edited block reference using the ATTSYNC command. This is missing in v3.5

There is a .NET routine (which I have not tested) posted at http://www.theswamp....76309#msg476309

cheers
Ewen

#2 ISL

    Advanced Member

  • Members
  • PipPipPip
  • 47 posts

Posted 17 September 2012 - 02:12 PM

The .NET implementation of AttSync command that was discussed in the mentioned TheSwamp post is written by Andrey Bushman, the source code is available at his web site (in Russian): https://sites.google...ametki/attsynch.

With minimal modifications AttSync works in nanoCAD with ordinary blocks. Since dynamic block .NET API is not implemented yet I disabled the related code.

The AttSync.dll binary module and the corresponding source code are attached. To build the project copy it to the SDK\samples\Mgd folder.

To try ATTSYNC in nanoCAD:
  • load AttSync.dll with NETLOAD,
  • start ATTSYNC command.
Please note that there is a known issue with this sample in nanoCAD 4.0 Beta1: undo after AttSync may crash Beta1. In nanoCAD 3.5 undo works as designed.

Attached Files


Build your own nanoCAD. Visit the nanoCAD API Blog. Join the nanoCAD Developers' Club.

#3 CAD bloke

    Newbie

  • Members
  • Pip
  • 8 posts
  • LocationSydney

Posted 19 September 2012 - 09:23 AM

Nice one. Thank you for making that happen.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users