Giter VIP home page Giter VIP logo

Comments (6)

teocomi avatar teocomi commented on September 27, 2024

Thanks for the report, @timglewis !
Do you know if this type of family used to work before?

Possibly related to #2337 #1436 #1915

from speckle-sharp.

timglewis avatar timglewis commented on September 27, 2024

We haven't tried previous versions for this element so I can't confirm if it's a regression.

It does appear to be similar to #2337

from speckle-sharp.

connorivy avatar connorivy commented on September 27, 2024

Hi @timglewis,

Sometimes Revit has multiple display meshes for an object. One (or more) default and then one (or more) view specific. I wonder if the image of the cable tray in the Revit modeling space is a view-specific mesh, and the one in the Speckle viewer is the default mesh.

Try sending to Speckle using the view filter

Image

this will send the cable tray's mesh as the view specific mesh. I'm not completely sure this is the issue, but give it a shot and let me know if that shows up correctly.

Also make sure you are on the connector version 2.15 (or newer)

from speckle-sharp.

katelewis13 avatar katelewis13 commented on September 27, 2024

Hi @connorivy,

I work with @timglewis and have just tested out your suggestion. It looks like upgrading the speckle connector to the latest and specifying the view to select has resolved the issue.

Looking into this a bit further it seems that when you change the 'Detail Level' in Revit from fine to medium, the simplified mesh is shown, so based on what you're saying it appears speckle exports the Medium detail level by default. Is there a way to specify the level of detail to export in the speckle connector settings, or is exporting a specific view the only solution at this stage?

image

from speckle-sharp.

connorivy avatar connorivy commented on September 27, 2024

Hi @katelewis13

That is good insight. I looked into this and what I found appears to be a bug (or maybe a quirk) with the Revit api. If you look at our CableTrayToSpeckle method you'll see the line where we assign the display value

displayValue = GetElementDisplayValue(revitCableTray, SolidDisplayValueOptions)

And the SolidDisplayValueOptions is defined as

public Options SolidDisplayValueOptions = new Options()
    {
      DetailLevel = ViewDetailLevel.Fine,
      ComputeReferences = true
    };

As you can see, the Revit api allows you to retrieve meshes with a given detail level, but our detail level is already set to ViewDetailLevel.Fine. I double checked this with the very helpful RevitLookup tool and I saw the same thing. I guess revit considers this geometry to be view specific and therefore will not give the correct view unless you use view-specific geometry retrieval.

from speckle-sharp.

connorivy avatar connorivy commented on September 27, 2024

Closing as a revit limitation

from speckle-sharp.

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.