AutoCAD Electrical General

Reply
Active Contributor
jean.renaud.grimard
Posts: 33
Registered: ‎01-04-2010
Message 1 of 1 (64 Views)

Swap block - Unsplit Tag to Split Tag

64 Views, 0 Replies
03-15-2012 08:07 AM

Hi,

 

I've observed that when we swap a block whose Tag is on only one attribute (TAG1, TAG2) to a new block of same type but with split tag, the tag information is lost (we get CR/CR).  This occur with default settings of swap function.

 

I've thought about doing an attribute mapping list, but it seems too complicated because i do not know all the inner workings of the default setting, and it would be incomplete because (i think) we cannot write something like "merge split attributes into one" in the mapping file, like in the case we swap a split tag to unique tag.

 

The only "intelligent" possibility in attribute mapping file is wildcard matching, but merging is not a wildcard-related procedure...

 

Anybody knows if someday that problem will be solved ?

 

In the meantime, i had to overload the Autocad Electrical API "wd_bswap" to correct that.  The way it works is :  create all needed attributes not present on the block, then let the original api do its work.  For example, if i only have TAG1 on the block, the TAG1_PART1, TAG1_PARTX and TAG1_PART2 will be added, then TAG1 value will be copied into TAG1_PART1, afterwards the original swap API will be called.  It will find match between old block and new block split tags, then will not lost TAG information.  I also added some code to split the tag.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Manufacturing Community
The Manufacturing Community provides additional access to tips, tutorials, blogs and networking with peers.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

New AutoCAD Electrical Category!

The AutoCAD Electrical forum has moved into it's very own category page, and can no longer be found within the Additional Product Forums.

Ask the Community