Results 1 to 4 of 4

Thread: Making a Custom Object Type

  1. #1
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Making a Custom Object Type

    Anyone know of a way to do this?

    I'm after an object type which the user can edit by placing linework inside it. It's supposed to be used as a directional constraint for a renumbering system - i.e. the user would draw the lines in the direction(s) that the numbers should increment, thus enabling a much quicker / automatic renumbering than any others I've found thus far.

  2. #2
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Making a Custom Object Type

    As I am not that familiar with Revit, perhaps this will help, even if only in concept:

    Stephen Preston describes in this post, that you can create custom object types provided there's an applicable wrapper for it, and it can inherit a base types properties, methods, events, etc..

    As for how to do this, I've not yet attempted to do so myself, but I did stumble upon this article from AdnDevBlog, while attempting to learn more about interacting with the Database.ObjectModified Event, and learned about the "No, No" of using StartTransaction() in lieu of StartOpenCloseTransaction()... In any event, Fenton mentions (briefly) that they helped a developer to build a custom object enabler which may also be something you'll need if this is to be used by more than yourself.

    .Net custom object wrappers

    HTH
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  3. #3
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Making a Custom Object Type

    Again, not sure of the .NET API Object Model overlap between AutoCAD and Revit (or the lack thereof), but I also found this old thread over at TS, which includes the C++.
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  4. #4
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Making a Custom Object Type

    Thanks RM, though what I'm after is trying to add a 2D Sketch to some view specific custom object. Something like a Detail Curve, though I don't want it plottable (i.e. either have all its lines forced to invisible, or have it act like reference planes - which doesn't plot by default).

    The idea is to have an object which defines the direction of numbering per view, per object type. Thus you'd place one of these for rooms, another for doors, another for windows, another for parking bays, etc.

    An alternative idea would be to store the "sketch" as Extensible Data to the View Object itself. But that means I've got to re-implement all sorts of stuff about how to store an arc, a spline, a normal line, etc. Not to mention, I still need to get a 2d Sketch from the user, and I'd like the capability for the user to copy-paste these to other views easily.

Similar Threads

  1. 2015: Making a new family type
    By MikeJarosz in forum Revit Architecture - General
    Replies: 5
    Last Post: 2015-04-30, 04:42 PM
  2. Replies: 4
    Last Post: 2014-11-14, 04:01 AM
  3. Making a new wall type
    By ohitsmunstar in forum Revit - Student Support
    Replies: 2
    Last Post: 2011-02-18, 01:18 AM
  4. Replies: 1
    Last Post: 2008-09-25, 09:24 AM
  5. Making you First Wall Type Assembly
    By cadclips81126 in forum Revit Architecture - Tips & Tricks
    Replies: 0
    Last Post: 2006-04-26, 09:01 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
  •