I’ve basically adopted Joseph Peels method of placing views on the sheets. The code works fine to a point but it puts the views miles off to the right.
I don’t know if this is a unit conversion problem or how the view is set-up. I’m using a metric template. Could someone please shed some light on this. Do I need to set-up the views in a particular way first?
Open the titleblock family and then use Dynamo to create a detail line from point 0,0 to point 10,10. The lower left corner of that line is the 0,0 point.
You could also try drawing the line with dynamo from 0,0 to 10,0 in the project environment if you don’t want to mess with the family just yet. If the new line line misses the lower left corner than your titleblock is incorrectly built or incorrectly placed.
Which they are. The question is the data contained in the titleblock may be shifted well to the left in this case. Had a similar issue in my office when someone created their own titleblock by shifting the wrong line to make a new page size.
You’re close. Turns out drawing a line in a titleblock file is harder than I remembered. Faster and easier to just move one that already exists and manually drawing a random line works so…
Draw a line anywhere in the current title block family and use this script to move said line to what should be the lower left corner and upper right corner of the titleblock (the paper extents). The page size should be in the units of the x or y value in the units your file is set to.
nothing wrong with your family…
see this simplified dyn…I think something wrong with you original dyn. I cannot use it coz there are missing customised nodes (dyf)…