Jump to content

Recommended Posts

Posted

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.  

image.png.b466807e07e26d09f78664619fcebde1.png

Posted

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

Posted
  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.  

image.png.b466807e07e26d09f78664619fcebde1.png

 

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.png

Align Views.zipFetching info...

  • Like 1
Posted

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.  

 

Posted

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

image.thumb.png.324fbb62220b9d557bfee802dda85caa.png

Posted

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.

Posted (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

image.thumb.png.324fbb62220b9d557bfee802dda85caa.png

 

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)

 

 

 

image.thumb.png.94fcee8047c0ea5bbb10115bba10a99b.png

Edited by nod684
Posted (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 by BIGAL
Posted
  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.

 

 

Posted (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 by BIGAL

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...