Donate Now Goal amount for this year: 3000 USD, Received: 1207 USD (40%)

Results 1 to 3 of 3

Thread: Get "type" parameter of instance in Python Script

  1. #1
    Member
    Join Date
    August 29, 2015
    Posts
    87
    Current Local Time
    05:39 PM

    Get "type" parameter of instance in Python Script

    Hi!

    How do I get value from a "type" parameter of instance in Python Script?

    I tried .GetParameterValueByName("") but it only works on instance-parameters.

  2. #2
    Member Bjorn_K's Avatar
    Join Date
    April 8, 2011
    Location
    Rotterdam, Netherlands
    Posts
    313
    Current Local Time
    06:39 PM
    Get the Type element first from the Instance. Revit has seperate Ids for both the Instance and the Type container.

    Should be Element.GetType, but read up here: Element Members

  3. #3
    Member
    Join Date
    August 29, 2015
    Posts
    87
    Current Local Time
    05:39 PM
    Quote Originally Posted by Bjorn_K View Post
    Get the Type element first from the Instance. Revit has seperate Ids for both the Instance and the Type container.

    Should be Element.GetType, but read up here: Element Members
    I tried "Element.GetType()" but it did not work. Is there a site that shows all functions in Python?
    Attached Thumbnails Attached Thumbnails Get "type" parameter of instance in Python Script-gettype.png  

Similar Threads

  1. Replies: 0
    Last Post: February 20th, 2017, 01:45 PM
  2. "Values can vary by group instance" for parameter
    By Rick Moore in forum Architecture and General Revit Questions
    Replies: 8
    Last Post: May 11th, 2016, 01:41 PM
  3. change instance parameter w/ "Edit" for multiple views/sheets
    By Ning Zhou in forum Architecture and General Revit Questions
    Replies: 3
    Last Post: October 22nd, 2014, 08:56 AM
  4. "Mark" instance parameter, auto increment
    By TRWhitehead in forum Architecture - Family Creation
    Replies: 3
    Last Post: March 17th, 2014, 10:45 PM
  5. XYZ as "instance" parameter? Possible - Co-ordinate.
    By James in forum Architecture - Family Creation
    Replies: 26
    Last Post: December 21st, 2013, 12:57 PM

Posting Permissions

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