Coder Social home page Coder Social logo

Comments (7)

andydandy74 avatar andydandy74 commented on June 12, 2024

One way to approach this may be to include an optional input for document with the default set to current document. Would definitely be better than having two versions of the same node. If that doesn't work, the next best thing would be to have one node that has a document input and create a second node that wraps that node together with a Document.Current node. That way there would only be one Python script to be maintained.

from clockworkfordynamo.

andydandy74 avatar andydandy74 commented on June 12, 2024

Let's go with an optional input for document. Not sure if this works with the new default values for inputs but let's make this a feature for version 0.8 ...

from clockworkfordynamo.

andydandy74 avatar andydandy74 commented on June 12, 2024

This pertains to all Document.XXX nodes as well BTW

from clockworkfordynamo.

andydandy74 avatar andydandy74 commented on June 12, 2024

This won't work. Incompatible data types for document objects in Dynamo and Python.
See this issue: DynamoDS/Dynamo#2460

from clockworkfordynamo.

andydandy74 avatar andydandy74 commented on June 12, 2024

Here's a better way: Use the Element.Document property. This way we won't need an optional Document input at all. This will cover all nodes with a doc.GetElement call, but it's not a solution for all Document.xxxxx nodes.

from clockworkfordynamo.

andydandy74 avatar andydandy74 commented on June 12, 2024

Affected nodes:

  • CurtainPanel.HostPanel
  • DesignOption.DesignOptionSet
  • Element.Group
  • Element.Host
  • Element.Inserts
  • Element.Level
  • Element.Materials
  • Element.OwnerView
  • Element.Panels
  • Element.Phases
  • FamilyInstance.CopingElements
  • FamilyInstance.SubComponents
  • FamilyType.CompoundStructureLayers
  • Group.Members
  • MassFloor.Mass
  • Part.SourceElement
  • PlanView.Underlay
  • Room.Boundaries
  • SelectionSet.Elements
  • Sheet.Schedules
  • View.Phase
  • View.ViewTemplate

from clockworkfordynamo.

andydandy74 avatar andydandy74 commented on June 12, 2024

These nodes would need an (optional) document input:

  • All Elements of Family Type+
  • All Families Of Category
  • All Family Types Of Category
  • All Intersecting Elements Of Category
  • All View-Dependent Family Instances Of Category
  • Document.Default3DView
  • Document.IsWorkshared
  • Document.Phases
  • Document.ProjectInfo
  • Document.ProjectParameters
  • Document.ProjectParametersByCategory
  • Document.ProjectPosition
  • Document.StartingView
  • Document.Views
  • Document.Worksets
  • Element.ByID
  • Element.FromDynamoSurface
  • RevitFace.FromDynamoSurface
  • RevitFaceReference.FromDynamoSurface

from clockworkfordynamo.

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.