Coder Social home page Coder Social logo

Comments (14)

thumDer avatar thumDer commented on September 15, 2024 2

The extents of the crop is easy. If there is no crop the extents has to be calculated from the complete model and that is quite expensive.

from pyrevit.

thumDer avatar thumDer commented on September 15, 2024 1

It was intentional to use the level, because calculating a views outline can be tricky if it is not cropped. An alternative could be to use the view's outline if it is croped but fallback to the level's if it is not.

from pyrevit.

thumDer avatar thumDer commented on September 15, 2024 1

thanks, already fixed by 5ddd651
we always have our PBP at our internal origin, so never came accross this difference, but nice catch!

from pyrevit.

jmcouffin avatar jmcouffin commented on September 15, 2024 1

Manually, that makes me feel better to see the number of issues going down, that's me liking things tidy🀭

from pyrevit.

RevitIRL avatar RevitIRL commented on September 15, 2024

I'd prefer that method - and that's what I would expect (using the view's Associated Level if no Crop Region).

from the other thread:
maybe you could get the bounding box of the view instead? [though it would be nice,] If it's not precisely the outline of the crop region, that's fine (i.e. it can be rectangular), but sometimes our level is huge, but the plan view is smaller

from pyrevit.

thumDer avatar thumDer commented on September 15, 2024

I've changed the code to use the views extents. Do we need the level's extents as a fallback, or should the UI warn about turning on the crop? I think the different behaviour for uncropped views can be confusing without explanation, and most of the views are cropped anyway.
Thoughts? @RevitIRL @jmcouffin

from pyrevit.

jmcouffin avatar jmcouffin commented on September 15, 2024

@thumDer I'd go for the warning IMHO

from pyrevit.

thumDer avatar thumDer commented on September 15, 2024

I've also realized that I would need to combine that pre-check/warning with the 3d view's sectionbox check, because if the 3d view has a section box the script will use its extents for the planes, and the levels were only a fallback. So now the crop will be a fallback, and if there is none the warning will ask the user to turn on the section box OR the crop. Deal?

from pyrevit.

jmcouffin avatar jmcouffin commented on September 15, 2024

@thumDer deal
One thing I noticed is that in the Revit sample house (imperial) the plans are offset up by the inverse of the project base point vertical displacement

from pyrevit.

thumDer avatar thumDer commented on September 15, 2024

@jmcouffin Interesting. I don't have the imperial sample house right know, could you send it over to me somehow?

from pyrevit.

jmcouffin avatar jmcouffin commented on September 15, 2024

@jmcouffin Interesting. I don't have the imperial sample house right know, could you send it over to me somehow?

https://drive.google.com/file/d/1Vj5GuygVbzUShW91LJtvIp-ACSj20tkc/view?usp=sharing

from pyrevit.

jmcouffin avatar jmcouffin commented on September 15, 2024

shall we close the issue?

from pyrevit.

thumDer avatar thumDer commented on September 15, 2024

That fix I comitted is only for the elevation issue, I still need some time to finalize to crop based extents, only slight adjustments, safeguard mechanisms.

from pyrevit.

thumDer avatar thumDer commented on September 15, 2024

done. should we close this manually or let it close itself on next release?

from pyrevit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.