So you tried a whole morning to divide these dimensions by using lisp just to save 1-2 seconds? How much time does typing QDIM and using the E option really take you?
Someone else will be along shortly if you are willing to wait for a complete packaged solution but the process is:
(defun c:mycommandname (<no arguments> / <local variables as you wish>)
And i forgot to say in begining and this is a big point in this case, i need this command to automatically change UCS world sistem to dimension line system and after all is done to return UCS world sistem.
in this case i must draw points and then select them and then select dimension line. And it wont work if Dimension line is not in world UCS
the point is to first select line and chose their UCS, then to click some points on drawing, then the line to be divided and then evtything to go back to UCS world
in this case i must draw points and then select them and then select dimension line. And it wont work if Dimension line is not in world UCS
the point is to first select line and chose their UCS, then to click some points on drawing, then the line to be divided and then evtything to go back to UCS world
Ouu sorry, is this way you wanted it? You might post dwg next time!!!
(defun c:QDimSplit (/ ss en pt)
(setq en (entsel "\nSelect dimension: "))
(command "_UCS"
"_OB"
en
"_.QDIM"
en ""
"_E"
"_A")
(while (setq pt (getpoint "\nPoint <exit>: ")) (command "_none" pt))
(command)
(command PAUSE
"_UCS"
"_P")
(princ)
)
Hi, thank you its beter but stil wont work especially if i have dimension line in UCS thats not equal to world one. something like aligned dimension. But if i put ucs in direction of dimension line before command it will work. I think there is a error somewhere, the command doesnt recognize the ucs of dimensional line.
did you try your command with linear rotated dimension line and keeping the world ucs? when you divide the line , the command only gives new dimension lines in direction of X or Y world usc system depending of direction where you click. you cant divide the existing line. you erase the old one and make new ones in other ucs. I think the comand is good but need a modification to put ucs (either X or Y direction of it) parallel with dimension line. if that is solve i think everything will be ok.
I saw the routine you said. It work great, better then your rutine, but there are to many repeating especially if there is too much points.
did you try your command with linear rotated dimension line and keeping the world ucs? when you divide the line , the command only gives new dimension lines in direction of X or Y world usc system depending of direction where you click. you cant divide the existing line. you erase the old one and make new ones in other ucs. I think the comand is good but need a modification to put ucs (either X or Y direction of it) parallel with dimension line. if that is solve i think everything will be ok.
Don't follow you... can't replicate this issue. The routine modifies the coordinate system itself. It works for me.
The routine is based on QDIM command. If this command can't do it, then the routine can't that nether.
miroslav.pristov wrote:
I saw the routine you said. It work great, better then your rutine, but there are to many repeating especially if there is too much points.
So we must change something...
OK, if this routine fits to you better, then we (= I) can make it multiple.
I added a templine for aligned dims, you need to click on it for good alignment.
I added a temp dynamic line... you need to start from a point which is the most close to the connected end of the main dim.
can i ask you something more about this LISP command for spliting dimension line. is there a chance to make split lines to have exatly the same format as the original dimension line, because the new lines change a format especially at lenght of extension lines, i didnt notice any other chenges but maybe there aare some more. Thank you
can someone plese help me to modify this lisp to work for aligned dimension as it works for linear. if i break aligned dimension in some point which is not on line from which i took dimensions i dont get what i want.
here is a lisp and example file with problem i have
Thank you, i really appreciate if someone could help
can someone plese help me to modify this lisp to work for aligned dimension as it works for linear. if i break aligned dimension in some point which is not on line from which i took dimensions i dont get what i want.
here is a lisp and example file with problem i have
Thank you, i really appreciate if someone could help
Hi... as I said before, you were supposed to click on a temp line.. Anyway, I modified it and now it's not necessary.