fuqua Posted May 24, 2011 Posted May 24, 2011 i have some blocks with a point connected to them, the point is free movable, moving the point does not move the block, but moving the block does also move the point. each block has 1 point connected to it. what i want is to move the point of the blocks i select to the same location. (without moving the blocks themselfs) i am using autocad 2011 (tried to upload the block in question but doesnt seem to be working) Quote
Tiger Posted May 24, 2011 Posted May 24, 2011 hmm.... Well, first thing first. This forum has a max size for uploaded DWGs, either reduce the size of your block (perhaps not possible) or you can host it off-site and link to it. Second, these points, are they in fact Points? I.E can you select them via say a QSELECT and select all points? Or do you have to select the block to get the Point selected? First idea I had is that a simple script should do the trick, take a look at Lee Macs signature, he has a Script Writer that is ridicolouslsysy easy to use (unlike spelling ridic...). I am out the door now, otherwise I would try something out for you. Quote
fuqua Posted May 24, 2011 Author Posted May 24, 2011 hmm.... Well, first thing first. This forum has a max size for uploaded DWGs, either reduce the size of your block (perhaps not possible) or you can host it off-site and link to it. Second, these points, are they in fact Points? I.E can you select them via say a QSELECT and select all points? Or do you have to select the block to get the Point selected? First idea I had is that a simple script should do the trick, take a look at Lee Macs signature, he has a Script Writer that is ridicolouslsysy easy to use (unlike spelling ridic...). I am out the door now, otherwise I would try something out for you. yes you have to select the bock first in order to get the point selected. the block is only 47 kb large, maybe my work has blocked upload, dunno ? ill look into lee macs script writer. thank you, i hope u come back if i dont succeed. Quote
fuqua Posted May 24, 2011 Author Posted May 24, 2011 hmm i just looked into lee macs script writer, but i dont quite see how that would help me, it seems to be about files.. ? Quote
Lee Mac Posted May 24, 2011 Posted May 24, 2011 Hi Fuqua, Are the blocks dynamic? It sounds like the 'point' you describe is actually an object grip. - are you able to post a (small) screenshot of the part of the block to which you are referring? Lee Quote
Lee Mac Posted May 24, 2011 Posted May 24, 2011 take a look at Lee Macs signature, he has a Script Writer that is ridicolouslsysy easy to use (unlike spelling ridic...). Thanks for the plug Tiger I didn't actually think too many people used that program... Quote
fuqua Posted May 24, 2011 Author Posted May 24, 2011 Hi Fuqua, Are the blocks dynamic? It sounds like the 'point' you describe is actually an object grip. - are you able to post a (small) screenshot of the part of the block to which you are referring? Lee the blocks are dynamic yes, lots of attributes in them. there i managed to upload it this time. uitlassing.dwg Quote
dbroada Posted May 24, 2011 Posted May 24, 2011 the "point" you were moving was the one unlocked attribute. If you were to give it (uitlassing?) a value you can see this. I think you need to add an additional point within the block to grab on to. I have modified your block by adding a point and have attached the attribute to it. You HAVE to lock attribute positions if you want to move them(!) so I have done that. What this modification has done is to expose the point location to the properties palette where it can be modified. If I have missed the object of the excercise can you give more details please. uitlassing2.dwg Quote
Lee Mac Posted May 24, 2011 Posted May 24, 2011 Just as I thought. The 'Point' you are referring to is the Object Grip of an Attribute whose 'Lock Position' property is not set. If the Attribute Definition (ATTDEF) has the 'Lock Position' property set, this grip will no longer appear, (but of course you will also no longer be able to move the attribute independently of the block). Quote
fuqua Posted May 24, 2011 Author Posted May 24, 2011 the "point" you were moving was the one unlocked attribute. If you were to give it (uitlassing?) a value you can see this. I think you need to add an additional point within the block to grab on to. I have modified your block by adding a point and have attached the attribute to it. You HAVE to lock attribute positions if you want to move them(!) so I have done that. What this modification has done is to expose the point location to the properties palette where it can be modified. If I have missed the object of the excercise can you give more details please. [ATTACH]27789[/ATTACH] the idea is that the block does not move when the point is moved. this should not change. what i want is to be able to move 10 of those points to 1 coordinate/location (now i have to do em 1 by 1, and i have to do like 2500) Quote
fuqua Posted May 24, 2011 Author Posted May 24, 2011 Just as I thought. The 'Point' you are referring to is the Object Grip of an Attribute whose 'Lock Position' property is not set. If the Attribute Definition (ATTDEF) has the 'Lock Position' property set, this grip will no longer appear, (but of course you will also no longer be able to move the attribute independently of the block). the grip has to appear, this is vital. what i want is to be able to move multiple of these grips (1 with each block) to any location of my choosing, and not 1 by 1 as i do now. Quote
dbroada Posted May 24, 2011 Posted May 24, 2011 the idea is that the block does not move when the point is moved. this should not change. what i want is to be able to move 10 of those points to 1 coordinate/location (now i have to do em 1 by 1, and i have to do like 2500) That is what I thought which is why I did it as I did. You can QSELECT all your blocks and change them in one group using the properties palette. I am sorry my block doesn't work for you but it does here. EDIT appologies, you can't move the grips to the same point using the properties palette (maybe Lee can) but the grip moves independant of the block and has its location exposed which didn't happen on your original block. Quote
Lee Mac Posted May 24, 2011 Posted May 24, 2011 the grip has to appear, this is vital. what i want is to be able to move multiple of these grips (1 with each block) to any location of my choosing, and not 1 by 1 as i do now. A location relative to the block I assume? This could be accomplished using code to change the position of an attribute with a specific tag. Quote
fuqua Posted May 24, 2011 Author Posted May 24, 2011 That is what I thought which is why I did it as I did. You can QSELECT all your blocks and change them in one group using the properties palette. I am sorry my block doesn't work for you but it does here. EDIT appologies, you can't move the grips to the same point using the properties palette (maybe Lee can) but the grip moves independant of the block and has its location exposed which didn't happen on your original block. aah yes ! i see now, this is a huge step forward already, this should clear the road for the next step and that is for the grips move to the location i click em to. Quote
dbroada Posted May 24, 2011 Posted May 24, 2011 A location relative to the block I assume? This could be accomplished using code to change the position of an attribute with a specific tag. I have assumed to a global location otherwise my modified block would work. I am sure either way is easy for you though. Quote
Lee Mac Posted May 24, 2011 Posted May 24, 2011 I have assumed to a global location otherwise my modified block would work. I am sure either way is easy for you though. Aww Dave, you flatter me too much Quote
fuqua Posted May 24, 2011 Author Posted May 24, 2011 EDIT appologies, you can't move the grips to the same point using the properties palette (maybe Lee can) but the grip moves independant of the block and has its location exposed which didn't happen on your original block. well i can type in the coordinates, but when i did that the grips disappeared ?! :S Quote
fuqua Posted May 24, 2011 Author Posted May 24, 2011 A location relative to the block I assume? This could be accomplished using code to change the position of an attribute with a specific tag. yup the grip should always stay "connected" to its host block. i hope you guys understand what i want. Quote
Lee Mac Posted May 24, 2011 Posted May 24, 2011 yup the grip should always stay "connected" to its host block. i hope you guys understand what i want. If you want to change the attribute position relative to each block (i.e. not move all attributes to a single coordinate), the simplest method would probably be to use BEDIT (if available on your version) and change the position of the attribute in the block definition, then use ATTSYNC to apply the change to all other instances of the block (note that this will update all tags though). I can't at present think of another method without using code. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.