View Full Version : disassociate dimension to Reassociate Dimensions
hareeshmb.219554
2009-07-06, 12:46 PM
Is it possible to convert disassociate dimension to Reassociate Dimensions globally. Can anyone please help me, its for my urgent work.
Thanks and regards
hareesh.M.B
T.Willey
2009-07-06, 08:54 PM
I would believe so, but it would take an experienced Lisper to do it.
irneb
2009-07-08, 07:24 AM
If I understand your post: You want Associated dims (i.e. DIMASSOC=2) to be disassociated from the linework & then re associated back to the linework? :?: Why?
Well, for the disassociation, select all the dims (QSelect or Filter or LayIso), then copy at an arbitrary distance, erase previous. Select the new dims and move at the same distance back to original positions.
For the 2nd, the dimreassociate command asks quite a few prompts for each dim. So somewhere your code needs to save each dim's line position, and the association of each dim defpoint to which snap of which entity. Then have to run dimreassociate for each new dim to re associat3e it.
hareeshmb.219554
2009-07-08, 11:48 AM
Thank u for ur reply, But I want to reassociate all dimensions together rather than reassociating each dimension.
Thank you,
Hareeshmb
irneb
2009-07-08, 02:48 PM
Sorry, I misunderstood you :Oops:
All I can think of is to check if a line (or some other entity) exists at each of the dim's definition points. Then pick those to obtain a selection set of each. Execute the DIMREASSOCIATE select the dim, Pick the 1st entity, pick the 2nd. Repeat this for each dim. Could be done through Lisp, but it would be extremely inefficient (since it'll call a command for each dim). Selecting all the dims at once in DIMREASSOCIATE could change the order of linework to be picked.
A more efficient way would be to rather change the DIM's DXF codes & use entmod. However this is not documented in Help very nicely, so we'll need to use trail & error programming to get it to work. Easiest way to do this is to use (entget (car (entsel))) at the command prompt then pick a non associated dim. Press F2 to open the text screen, select the DXF data displayed Ctrl+C and paste it into Notepad. Then perform DIMREASSOCIATE on that same dim as you would like it to be, then do the same (entget (car (entsel))) and compare the differences.
hareeshmb.219554
2009-07-08, 04:15 PM
Thanks again for your kind co-operation.
I am not a Lisp expert, just a beginner only. I forgot to tell u before, sorry.
My actual problem is that I have more than 25 architecture cad work for modification. All drawings are from client. Unfortunately all drawing dimensions are dissociated. I have to return him with re associated dimension within limited days.
Thanks and regards,
Hareesh.MB
hareeshmb@gmail.com
irneb
2009-07-08, 04:27 PM
Just to be realy sure of what's happening, could you attach a sample of what you have and what you require?
hareeshmb.219554
2009-07-09, 01:58 PM
Sorry, I was trying to upload a sample drawing. But I couldn't upload. Site show error msg when uploading.
Hareeshmb
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.