stlo Posted November 9, 2021 Share Posted November 9, 2021 Hi everyone! I've search on forums about this but I'm not finding anything! I'm sure someone asked this question in the past! Is it possible to change the dimension orientation with Dimcontinue by 90 degrees each time I would like to change direction without exiting the dimcontinue command in Autocad 2018? If not, would it be possible with programming? Thank you very much! Quote Link to comment Share on other sites More sharing options...
Dadgad Posted November 10, 2021 Share Posted November 10, 2021 (edited) Likely possible with programming, but not within the standard DimContinue functionality. So you are looking for that dimension to basically show the value of a running dimension around the perimeter, right? I only ask, for clarification, in case somebody else might be able to help you. Edited November 10, 2021 by Dadgad grammatical fix Quote Link to comment Share on other sites More sharing options...
stlo Posted November 16, 2021 Author Share Posted November 16, 2021 (edited) Exactly! I'm sending a drawing to show you what I think! Thanks! EXAMPLE.dwg Edited November 16, 2021 by stlo Quote Link to comment Share on other sites More sharing options...
BIGAL Posted November 17, 2021 Share Posted November 17, 2021 Picking start pt, next pt and a preset dim offset is what you want, set next to start pt, then continue picking next point and repeat. I dont have anything that matches but its a bit like make a pline from pick pts. You would use dim align not hor or ver. Something like this. ; https://www.cadtutor.net/forum/topic/73968-is-it-possible-to-change-dimension-orientation-while-performing-dimcontinue/ ; multi dim by AlanH Nov 2021 (defun c:mdim ( / off pi2 oldsanp pt1 pt2 pt3) (setq off 5.5 pi2 (/ pi 2.0)) (setq oldsnap (getvar 'osmode)) (setvar 'osmode 1) (setq pt1 (getpoint "\nPick 1st point ")) (while (setq pt2 (getpoint "\nPick next point Enter to exit")) (setq ang (angle pt1 pt2)) (setq mp (mapcar '* (mapcar '+ pt1 pt2) '(0.5 0.5 0.5))) (setq pt3 (polar mp (+ ang pi2) off)) (setvar 'osmode 0) (command "dim" "align" pt1 pt2 pt3 "" "exit") (setq pt1 pt2) (setvar 'osmode 1) ) (setvar 'osmode oldsnap) (princ) ) (c:mdim) 1 Quote Link to comment Share on other sites More sharing options...
stlo Posted November 18, 2021 Author Share Posted November 18, 2021 Oh wow! This is amazing, it also work with angle dimensions! Thank you very much, it's exactly what I was looking for! I've notice that my "oldsnap" settings were not displayed correctly at the end of the routine but fortunetly it was just a mistype at the beginning of the program (oldsanp), something I could've take care of and also, it brought me to learn some of the bitcodes in the osmode! So thanks again for the program and for the learning experience as well! Have a good day BIGAL! Quote Link to comment Share on other sites More sharing options...
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.