Request

Response

    Core

    Autodesk.Viewing.BubbleNode

    new BubbleNode(rawNode,parent)

    Wrapper and helper for “bubble” data.

    Bubble is a container of various 2D or 3D viewables (and additional data) that may be generated from a single seed file. The bubble is a JSON structure of nodes that have different roles, for example, they may represent sheets, nested 2D/3D geometry, etc.

    This class wraps the internal representation of the bubble and adds a couple of helper methods.

    Parameters

    rawNode*
    object
    Raw node from the bubble JSON.
    parent
    object
    Parent node from the bubble JSON.
    * Required

    Methods

    findByGuid(guid)

    Returns first node from the bubble matching a GUID.

    Note that some GUIDs in the bubble are not unique, you have to be sure you are looking for a GUID that is unique if you want correct result from this function. Otherwise use the generic search.

    Parameters

    guid*
    string
    Node GUID.
    * Required

    Returns

    TypeDescription
    BubbleNode Matching bubble node, or null.

    findParentGeom2Dor3D()

    Returns

    TypeDescription
    BubbleNode First parent in the hierarchy that is a 2D or 3D geometry.

    findPropertyDbPath()

    Finds shared property DB if there is one.

    Returns

    TypeDescription
    string Shared property DB path, or null.

    findViewableParent()

    Returns

    TypeDescription
    BubbleNode First parent in the hierarchy that is a viewable.

    getLodNode()

    Returns

    TypeDescription
    boolean Is this an LOD node.

    getNamedViews()

    Returns all the named views in the viewable. Named views are obtained from the document’s manifest which contains camera information and a string identifier.

    Available from version 2.15

    Returns

    TypeDescription
    array All named views. Returns empty array if none are found.

    getPlacementTransform()

    Returns

    TypeDescription
    object Placement transform of the node.

    getRootNode()

    Returns

    TypeDescription
    BubbleNode Top-most bubble node.

    getTag(tag)

    Retrieves value of a node tag.

    Parameters

    tag*
    string
    Tag name.
    * Required

    Returns

    TypeDescription
    * Tag value.

    getViewableRootPath()

    Looks for the viewable root path in this node and all its children.

    Returns

    TypeDescription
    string Viewable root path, or null.

    guid()

    Returns

    TypeDescription
    string Node GUID.

    is2D()

    Returns

    TypeDescription
    boolean Is this a 2D node.

    is2DGeom()

    Returns

    TypeDescription
    boolean Is this a 2D geometry node.

    is3D()

    Returns

    TypeDescription
    boolean Is this a 3D node.

    is3DGeom()

    Returns

    TypeDescription
    boolean Is this a 3D geometry node.

    isGeometry()

    Returns

    TypeDescription
    boolean Is this a geometry node.

    isGeomLeaf()

    Returns

    TypeDescription
    boolean Is this a geometry leaf node.

    isMetadata()

    Returns

    TypeDescription
    boolean Is this a metadata node.

    isViewable()

    Returns

    TypeDescription
    boolean Is this a viewable node.

    name()

    Returns

    TypeDescription
    string Node name.

    search(propsToMatch)

    Finds nodes from the bubble matching one or more properties.

    Parameters

    propsToMatch*
    object
    Filter criteria - matching nodes must have the same properties and values.
    * Required

    Returns

    TypeDescription
    Array.<BubbleNode> Matching nodes, or null.

    searchByTag(tagsToMatch)

    Finds nodes from the bubble matching one or more tags.

    Parameters

    tagsToMatch*
    object
    Filter criteria - matching nodes must have the same tags and values.
    * Required

    Returns

    TypeDescription
    Array.<BubbleNode> Matching nodes, or null.

    setTag(tag,value)

    Sets node tag value.

    Parameters

    tag*
    string
    Tag name.
    value*
    *
    Tag value.
    * Required

    traverse(cb)

    Recursively traverses the bubble, calling a callback function for each node, for as long as the callback function keeps returning false.

    Parameters

    cb*
    function
    Callback function, accepts a bubble node as an argument, and returns true if the traversal should be terminated.
    * Required

    Returns

    TypeDescription
    boolean Result of the last callback invokation.

    urn(searchParent)

    Retrieves the URN of the node or its closest ancestor.

    Parameters

    searchParent*
    boolean
    If URN is not available for this node, search through its ancestors, too.
    * Required

    Returns

    TypeDescription
    string Viewable URN.
     
    ______
    icon-svg-close-thick

    Cookie preferences

    Your privacy is important to us and so is an optimal experience. To help us customize information and build applications, we collect data about your use of this site.

    May we collect and use your data?

    Learn more about the Third Party Services we use and our Privacy Statement.

    Strictly necessary – required for our site to work and to provide services to you

    These cookies allow us to record your preferences or login information, respond to your requests or fulfill items in your shopping cart.

    Improve your experience – allows us to show you what is relevant to you

    These cookies enable us to provide enhanced functionality and personalization. They may be set by us or by third party providers whose services we use to deliver information and experiences tailored to you. If you do not allow these cookies, some or all of these services may not be available for you.

    Customize your advertising – permits us to offer targeted advertising to you

    These cookies collect data about you based on your activities and interests in order to show you relevant ads and to track effectiveness. By collecting this data, the ads you see will be more tailored to your interests. If you do not allow these cookies, you will experience less targeted advertising.

    icon-svg-close-thick

    THIRD PARTY SERVICES

    Learn more about the Third-Party Services we use in each category, and how we use the data we collect from you online.

    icon-svg-hide-thick

    icon-svg-show-thick

    Strictly necessary – required for our site to work and to provide services to you

    Qualtrics
    W
    Akamai mPulse
    W
    Digital River
    W
    Dynatrace
    W
    Khoros
    W
    Launch Darkly
    W
    New Relic
    W
    Salesforce Live Agent
    W
    Wistia
    W
    Tealium
    W
    Upsellit
    W
    CJ Affiliates
    W
    Commission Factory
    W
    Google Analytics (Strictly Necessary)
    W
    Typepad Stats
    W
    Geo Targetly
    W
    SpeedCurve
    W
    Qualified
    #

    icon-svg-hide-thick

    icon-svg-show-thick

    Improve your experience – allows us to show you what is relevant to you

    Google Optimize
    W
    ClickTale
    W
    OneSignal
    W
    Optimizely
    W
    Amplitude
    W
    Snowplow
    W
    UserVoice
    W
    Clearbit
    #
    YouTube
    #

    icon-svg-hide-thick

    icon-svg-show-thick

    Customize your advertising – permits us to offer targeted advertising to you

    Adobe Analytics
    W
    Google Analytics (Web Analytics)
    W
    AdWords
    W
    Marketo
    W
    Doubleclick
    W
    HubSpot
    W
    Twitter
    W
    Facebook
    W
    LinkedIn
    W
    Yahoo! Japan
    W
    Naver
    W
    Quantcast
    W
    Call Tracking
    W
    Wunderkind
    W
    ADC Media
    W
    AgrantSEM
    W
    Bidtellect
    W
    Bing
    W
    G2Crowd
    W
    NMPI Display
    W
    VK
    W
    Adobe Target
    W
    Google Analytics (Advertising)
    W
    Trendkite
    W
    Hotjar
    W
    6 Sense
    W
    Terminus
    W
    StackAdapt
    W
    The Trade Desk
    W
    RollWorks
    W

    Are you sure you want a less customized experience?

    We can access your data only if you select "yes" for the categories on the previous screen. This lets us tailor our marketing so that it's more relevant for you. You can change your settings at any time by visiting our privacy statement

    Your experience. Your choice.

    We care about your privacy. The data we collect helps us understand how you use our products, what information you might be interested in, and what we can improve to make your engagement with Autodesk more rewarding.

    May we collect and use your data to tailor your experience?

    Explore the benefits of a customized experience by managing your privacy settings for this site or visit our Privacy Statement to learn more about your options.