Edit crop region


#1

Hello
im new to dynamo , i was searching how to edit crop region by dynamo to use it to produce sheets by dynamo

in another way , i want to make constant crop region for all the views that i assign to sheet by dynamo

thanks in advance


#2

Hello, this could probably help for a start:
http://dynamobim.org/forums/topic/get-cropbox-element-from-a-view-element/


#3

thank you for replying
but im looking for how to edit this crop box dimension and location , copy it and assign it to multiple views , also doing the same thing to elevations and sections views


#4

Hello
i searched again for a solution but i still got no clue , does anyone has any idea yet ?


#5

Yes, sure, the idea here is that someone could help you to build your own graph or give you some clues to do it by yourself. Could you please drop some screenshots then? Thanks :slight_smile:


#6

look i want to control these parameters by dynamo nodes
in other words to specify the exact crop region dimensions and assign them to multiple views


#7

All I can find are nodes into SteamNodes, Rhythm, Bakery and Clockwork packages. Once those loaded, you’ll find them easily by typing “crop view” in the search field…


#8

they only work with 3d crop region
but thank you alot for your concern i really appreciate it
i hope that some one could develop custom node to this issue soon


#9

View.ResizeCropBox from Clockwork works for me in section view too, it could be a good start to reach what you need. See here to get started:
http://dynamoprimer.com/en/09_Custom-Nodes/9-4_Python.html


#10

Why not just make a scope box with the right dimensions and then set the scope box for each view with dynamo?


#11

I just added the node ‘View.SetCropBoxCurves’ to my package ‘MEPover’ that will let you set the crop view regions by a list of curves. The curves need to be in a closed loop ofcourse.


Changing view extents with Dynamo
Control the size of scope box
#12

Thank you T_Pover
can you make a screen about how it works ?
i tried but i failed
thank you in advance


Extracting Curves of Viewport
Automating Section Views of an Element
Modify Crop Region in 3d view
#13

If you look at the picture in my previous reply you’ll see that I’m feeding a list of curves per view into the node.
Now that I mention it: the node might not work with only a single view with a single list of lines… I’ll take a look at that asap.

Edit: I just published a new version that should work with single or multiple input curves and also with polycurves instead of a collection of lines or curves.


#14

Thank you!!! It works Fine


#15

Just what I needed, It works great!! Thank you very much! :smiley:


#16

@Thomas_Perkov Next time start a new thread please.


#17

I’ll do… I’m a bit confused … I couldn’t see the answers/solution before… :-S


#18

This is fantastic and exactly what I was looking for. Works perfectly for making the crop of a ceiling plan match that of the associated floor plan. Well done!


#19

Not sure I get what was done here exactly?

I am currently having an issue where I have section views automatically created, but now I want to adjust the crop region of those views. I have included pictures below of what my section views look like currently, and another of how I would like it to look when I “run” my workspace.

Pic #1 - How it looks now:

Pic #2 - How I’d like it to look:

Is there a node or python script or something which will let me get my section view to look like picture #2, rather than #1?

Here is my current post on this topic below, hoping someone may have more info about it here in this post


#20

Dears,
the script is not working for me. Please see script and photo for information.
What might be reason for that? Curve is closed.

Thanks
Section.dyn (11.0 KB)