Donate Now Goal amount for this year: 2500 USD, Received: 1627 USD (65%)

Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By zsmith3

Thread: Family Instance By Line In View

  1. #1
    Member
    Join Date
    June 13, 2014
    Location
    Milwaukee
    Posts
    232
    Current Local Time
    02:39 PM

    Family Instance By Line In View

    I had a working script, that would place a line based detail component in a view using the FamilyInstance.ByLine node. The issue with this node is that it asks for a level and I want to be able to apply the detail component to the current view and not have the level parameter (it was only working on level 1)

    Clockwork has a FamilyInstance.ByPointInView node which works for non-line based components.

    Would someone be able to help me develop a FamilyInstance.ByLineInView function.

    https://forum.dynamobim.com/t/family...n-view/10816/2

    I took the suggestion in this post and modified his format to fit in my script. The Python Node is not working. Can someone help me make the current script work or point me in the direction to do one that works. Thanks.

    The element.getlocation is getting the centerline of walls. I have attached the script. The file itself is too large to post, Ive tried to get it as small as possible but it still 1 mb too large

    Attached Thumbnails Attached Thumbnails Family Instance By Line In View-capture.png  
    Attached Files Attached Files

  2. #2
    Senior Member amoursol's Avatar
    Join Date
    November 21, 2012
    Location
    London, United Kingdom
    Posts
    612
    Current Local Time
    09:39 PM
    Hello Dennis,

    Would you be able to post a Screenshot or example of the kind of output you are after (i.e is it simply colouring a line on top of walls?).

    Could you post a screenshot of the detail component also please?

    I can have a look after that

  3. #3
    Member
    Join Date
    July 15, 2014
    Location
    Nahville, TN
    Posts
    53
    Current Local Time
    03:39 PM
    What a coincidence, I believe I'm trying to accomplish the exact same thing through different means. I've attached my working script, which is still in progress and has several kinks, but it may provide some insight. It's done in Dynamo 1.2, Revit 2016. It has several Clockwork packages in use, but I don't have access to their version at the moment.

    In mine - the line-based detail components are being placed by another Clockwork script - FamilyInstance.ByCurve . The 'curves' of all the rated walls are being acquired by Element.Location, with some pre-filtering to sort rated walls by Type Name (this is not ideal, but works with my standards).

    Here's where I'm stuck - I can't find a way to control the destination view for these 2D components. I have a feeling it's related to creating instances of 2D elements from 3D geometry (therefore disregarding 'current view'). It seems to place them in view with the lowest ID for the input level, but I haven't fully tested this. Anyone worked out something similar? Any input is much appreciated, as always.

    The line based family is nothing special - Amoursol, it's exactly as you describe: placing a colored line on top of a wall.

    Attached Thumbnails Attached Thumbnails Family Instance By Line In View-rating.png  
    Attached Files Attached Files
    amoursol likes this.

  4. #4
    Member
    Join Date
    June 13, 2014
    Location
    Milwaukee
    Posts
    232
    Current Local Time
    02:39 PM
    Quote Originally Posted by amoursol View Post
    Hello Dennis,

    Would you be able to post a Screenshot or example of the kind of output you are after (i.e is it simply colouring a line on top of walls?).

    Could you post a screenshot of the detail component also please?

    I can have a look after that
    I will post them tomorrow

Similar Threads

  1. Revit opens a new instance of family each time you edit the family from the project
    By Andrew P in forum Architecture and General Revit Questions
    Replies: 7
    Last Post: May 24th, 2016, 06:57 PM
  2. Multi-Line Parameter Fields in Type/Instance Dialogs
    By GMcDowellJr in forum Architecture and General Revit Questions
    Replies: 0
    Last Post: August 17th, 2015, 08:13 PM
  3. Generic line based family - Show only generic part in 3D-view
    By jkp4100 in forum Architecture and General Revit Questions
    Replies: 1
    Last Post: June 5th, 2014, 02:39 PM
  4. Family Instance wont extend to full length of Line
    By samz1 in forum Architecture and General Revit Questions
    Replies: 7
    Last Post: January 23rd, 2014, 01:15 PM
  5. Replies: 0
    Last Post: September 4th, 2013, 10:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •