ReMark Posted December 5, 2011 Posted December 5, 2011 (edited) Now I'm totally confused. If I insert the block named RK_PR_1 into the drawing I get to fill in all the attributes assigned to the block as I previously listed. We are talking about an attributed block are we not? Edited December 5, 2011 by ReMark Quote
Kevin v/d Berg Posted December 5, 2011 Author Posted December 5, 2011 the code does not work i thing it is becase the atributes ar nestit whitin the block Quote
Tharwat Posted December 5, 2011 Posted December 5, 2011 We are talking about an attributed block are we not? That's what I understood from his first post and from the thread title too . What did you find in the attached drawings that he uploaded ? attributes or attributed block ? Quote
ReMark Posted December 5, 2011 Posted December 5, 2011 OK...you want to change PNUM but what value to do want assigned to it? You keep mentioning X and Y coordinates but as I see it PNUM is just the number assigned to the survey point or boring location or monitoring well or whatever the block is supposed to represent. Heck, you can change the number easily using AutoCAD's FIND command and the REPLACE option. Or do you want to sequentially renumber all blocks? Quote
Kevin v/d Berg Posted December 5, 2011 Author Posted December 5, 2011 its indeed a block whit atributes to asing specific properties aslijke a number orso to each block Quote
ReMark Posted December 5, 2011 Posted December 5, 2011 (edited) That's what I understood from his first post and from the thread title too . What did you find in the attached drawings that he uploaded ? attributes or attributed block ? In the Test.dwg drawing I found numerous instances of one block and that block (RK_PR_1) had all the attributes I listed. I tested this by actually inserting the block into the drawing. As far as I am concerned the other drawing, RK_PR_1.dwg, adds nothing to the discussion. Edited December 5, 2011 by ReMark Quote
Tharwat Posted December 5, 2011 Posted December 5, 2011 Now with your last modifications on the drawing , there are attributed blocks , and you would not see the changes of my first code because all of their values are adjusted from smaller to bigger . You may want to adjust the numbers of attributed block from left to right according to their locations . Am I right ? Quote
pBe Posted December 5, 2011 Posted December 5, 2011 From what i undertstand: Number the blocks From left to right Top to bottom Which means sort and renumber Unfortunately i cannot open the file at all... Quote
ReMark Posted December 5, 2011 Posted December 5, 2011 (edited) its indeed a block whit atributes to asing specific properties aslijke a number orso to each block I've already said, multiple times, that RK_PR_1 is an attributed block. We are in agreement. Do you want to change the value of PNUM to just another number? Yes or No? Do you want to show the X and Y coordinates for each instance of the block (RK_PR_1) in the drawing? Yes or No? Edited December 5, 2011 by ReMark Quote
Tharwat Posted December 5, 2011 Posted December 5, 2011 From what i undertstand:Number the blocks From left to right Top to bottom Which means sort and renumber Unfortunately i cannot open the file at all... I guess you're right pBe and that's what I mentioned in my last post . Here is the drawing you can try also my friend . TesT.dwg Quote
Kevin v/d Berg Posted December 5, 2011 Author Posted December 5, 2011 yes i want to renumber the values of the atribute namend Pnum in a chosen oorder such as from left to right Quote
ReMark Posted December 5, 2011 Posted December 5, 2011 but that would men i have to explode evry thing and thas not handy at al No, you don't have to explode anything. In your test drawing you seem to have multiple blocks with the same PNUM. Why is that? Is that the case in the actual drawing? Quote
Tharwat Posted December 5, 2011 Posted December 5, 2011 yes i want to renumber the values of the tag namend Pnum in a chosen oorder such as from left to right I think if you upload an image of your last result of the drawing , it would be excellent . Quote
ReMark Posted December 5, 2011 Posted December 5, 2011 yes i want to renumber the values of the atribute namend Pnum in a chosen oorder such as from left to right How does one go about selecting the blocks if the value of PNUM is the same? Quote
Kevin v/d Berg Posted December 5, 2011 Author Posted December 5, 2011 that's becaus if i copyd them and now i want to renumber them i copit them becaus normely the have mor stuf addit lijk paal legt or newtons Quote
pBe Posted December 5, 2011 Posted December 5, 2011 Here is the drawing you can try also my friend . Thats nice of you tharwat.... but this time its not the CAD version... but i have no CAD on my station at all .. i really messed up my laptop writing a program with "bad" intentions using another program not related to CAD. No worries. i'll just watch for now Quote
ReMark Posted December 5, 2011 Posted December 5, 2011 Lee Mac wrote a lisp routine that automatically labels attributes. Give it a try. http://lee-mac.com/autolabelattributes.html If you don't like that one then try his Batch Find and Replace Text routine. It works on attributes too. http://lee-mac.com/bfind.html Quote
Kevin v/d Berg Posted December 5, 2011 Author Posted December 5, 2011 i have a standert libary wich i copy from and if thats done i want to reoorder the valus Pnum so the are in a logical setup Quote
Kevin v/d Berg Posted December 5, 2011 Author Posted December 5, 2011 le macs progam ads a seprete atribute not inculdet in the block and is i have lijk 500 blocks it egts messy Quote
Kevin v/d Berg Posted December 5, 2011 Author Posted December 5, 2011 lemac also wrote a progam that works perfectli only not if i put in 50 blocks then it messis op the count 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.