nicolas Posted February 4 Posted February 4 Hi. I have been able to find areas of different floors and put those area floors together in a sheet. It seemed quite similar to viewport in Autocad. However I cannot align those views based on the geometry they contain which is possible in Autocad. For example I have three different layout and I want to align them based on the lift/staircase or other fix X-Y point that remain unchanged in the different floors. Thanks in advance for your help and advice. Quote
BIGAL Posted February 4 Posted February 4 Just a suggestion if you use Zoom C Point scale when in mspace in a viewport it will centralise the view, you can then reset the viewport scale to what you want. If your metric you can use Zoom valueXP as you know the value for 1:25. its like 4 ie 1000/25 = 4 Quote
nod684 Posted February 5 Posted February 5 On 2/4/2025 at 6:06 PM, nicolas said: Hi. I have been able to find areas of different floors and put those area floors together in a sheet. It seemed quite similar to viewport in Autocad. However I cannot align those views based on the geometry they contain which is possible in Autocad. For example I have three different layout and I want to align them based on the lift/staircase or other fix X-Y point that remain unchanged in the different floors. Thanks in advance for your help and advice. It's fairly simple, as you can see in my example, while dragging the Level 2 Views into my sheet, an "ant line" (clouded in RED in the attached image) appears aligning your Level 2 view to the view beside it which is Level 1. You can also do this while aligning the View Title below the views. For some reason, I cannot attach a GIF screen recording so I just zip it up and attached it here. Kindly download and unzip on your side to see a better example. Hope this helps. Align Views.zipFetching info... 1 Quote
nicolas Posted February 5 Author Posted February 5 Ok I will check this right away. I have found the ant line you spoke about when aligning the text below (also I was unable to edit the line so I have to discard the line part altogether). I check and I revert back. Hope this works in Revit 2019. Quote
nicolas Posted February 5 Author Posted February 5 Ok thank you Nod684. the ant line appeared only when the views are aligned. Thanks. I have been trying so many options on this. If you can help me on the line next to the title. One solution was to remove it altogether i.e title without line Quote
BIGAL Posted February 5 Posted February 5 I posted the manual way but you can do the same with lisp, pick a point and use that at scale to set the viewport. I take the dwg's are in mm. You just flip between a layout viewport and select a point in model. Added to my to do list. I have this done for make single layouts but core is the same. Quote
nod684 Posted February 6 Posted February 6 (edited) On 2/5/2025 at 2:31 PM, nicolas said: Ok thank you Nod684. the ant line appeared only when the views are aligned. Thanks. I have been trying so many options on this. If you can help me on the line next to the title. One solution was to remove it altogether i.e title without line Click the view that you just placed. Go to the Properties Panel click Edit Type (1). You can check the TYPE if you have other types such as mine in the example below. If you have you can skip steps 2 and 3 and just select the type that says Title No Line. if not you may want to go to DUPLICATE (2) and assign a Type Name (3) finally, uncheck the Show Extension Line (4) Edited February 6 by nod684 Quote
BIGAL Posted Thursday at 04:43 AM Posted Thursday at 04:43 AM (edited) Give this a try has a bug when setting the last viewport zoom scale so try it if not working for last viewport add a dummy one the rest should be correct. Will try to fix bug. I know my Bricscad sometimes gets a ssget in reverse order, I mention this as there is one extra viewport than what you see a layout it has a Pspace viewport. (defun c:copyvports ( / ss x pt vp cspace) (if (= (setq tab (getvar 'ctab)) "Model")(progn (alert "You need to be in a layout to run \nwill now exit run again")(exit))) (command "pspace") (setq ss (ssget "X" (list (cons 0 "VIEWPORT")(cons 410 (getvar 'ctab))))) (setq x (sslength ss)) (setq sc (getreal "\nEnter scale eg 1: 25 etc num only ")) (repeat (- (sslength ss) 1) (setq vp (ssname ss (setq x (1- x)))) (setq cspace (cdr (assoc 69 (entget vp)))) (setvar 'ctab "Model") (setq pt (getpoint "\nPick central point ")) (setvar 'ctab tab) (setvar 'cvport cspace) (command "zoom" "c" pt (strcat (rtos (/ sc 1000) 2 3) "XP")) (command "pspace") ) (command "pspace") (command "zoom" "e") (princ) ) (c:copyvports ) To do the task properly really need a dwg with a true layout with your title at true size eg 420x297 ie A3. Edited Thursday at 05:17 AM by BIGAL Quote
nod684 Posted Friday at 01:25 AM Posted Friday at 01:25 AM On 2/6/2025 at 4:43 AM, BIGAL said: Give this a try has a bug when setting the last viewport zoom scale so try it if not working for last viewport add a dummy one the rest should be correct. Will try to fix bug. I know my Bricscad sometimes gets a ssget in reverse order, I mention this as there is one extra viewport than what you see a layout it has a Pspace viewport. (defun c:copyvports ( / ss x pt vp cspace) (if (= (setq tab (getvar 'ctab)) "Model")(progn (alert "You need to be in a layout to run \nwill now exit run again")(exit))) (command "pspace") (setq ss (ssget "X" (list (cons 0 "VIEWPORT")(cons 410 (getvar 'ctab))))) (setq x (sslength ss)) (setq sc (getreal "\nEnter scale eg 1: 25 etc num only ")) (repeat (- (sslength ss) 1) (setq vp (ssname ss (setq x (1- x)))) (setq cspace (cdr (assoc 69 (entget vp)))) (setvar 'ctab "Model") (setq pt (getpoint "\nPick central point ")) (setvar 'ctab tab) (setvar 'cvport cspace) (command "zoom" "c" pt (strcat (rtos (/ sc 1000) 2 3) "XP")) (command "pspace") ) (command "pspace") (command "zoom" "e") (princ) ) (c:copyvports ) To do the task properly really need a dwg with a true layout with your title at true size eg 420x297 ie A3. Expand Hi Bigal, I believe the OP is working in Revit and lisp doesn't work in Revit. Quote
BIGAL Posted Saturday at 12:29 AM Posted Saturday at 12:29 AM (edited) @nod684 I think your right I just looked at the user profile of Autocad, @nicolas did post to Revit Forum. When looking at unread does not show where post has come from. Edited Saturday at 12:31 AM by BIGAL 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.