Recent Posts

Pages: [1] 2 3 ... 10
General Programming Queries / Re: Add a CustomData to an Item
« Last post by Admin on Yesterday at 09:15:04 PM »
General Programming Queries / Add a CustomData to an Item
« Last post by jaysomlam on Yesterday at 08:38:50 PM »
Would you please let me know how to programmatically add a custom-data to a duct that doesn't have it yet?

I have a drawing that I have already drawn many duct on it.  Then I add a custom data "OurStuff" to our Main Database.  This creates a problem because the duct in the existing drawing don't have "OurStuff" in their custom data (meaning that itm.CustomData.Count is equal to zero).  I can manually add it to the duct individually through "CADmep Properties" dialog box.  But I have to do this one by one and is very time consuming.  I believe the best way to deal with this issue (for my application) is to have my program to automatically add "OurStuff" to the custom data of a duct whenever it finds that the duct is missing "OurStuff".  Unfortunately I cannot figure out how to do this.

Seem like there is a itm.AddCustomData("OurStuff") command in Scripting-API.  There seems to be an equivalent command itm.AddCustomData(CustomData) in Fabrication API for .NET.  This means I need to somehow create a CustomData object, set it up, and then pass it as a parameter to the itm.AddCustomData() command.  I expect to do something like this:

Code: [Select]
CustomData dataNew = new CustomData(); // <-- Compiler error here
dataNew.Type        = CustomDataType.String;
dataNew.Description = "OurStuff";
dataNew.Value       = "";
itm.AddCustomData( dataNew );

Or something like this:

Code: [Select]
CustomDataStringValue dataNew = new CustomDataStringValue(); //<-- Compiler error here
dataNew.Data.Description = "OurStuff";
dataNew.Value            = "";
itm.AddCustomData( dataNew.Data );

The problem is that I keep getting a compiler error saying that the constructors of CustomData and CustomDataStringValue don't expect to see 0 argument.  I have tried entered 1, 2, 3, 4, 5, 6, 7, 8 dummy arguments to the constructor.  But I keep getting similar error message ("'CustomData' does not contain a constructor that takes X arguments").

Please let me know if there is a way to programmatically add a custom data to duct that doesn't have the custom data before.  If this cannot be done, please let me know if there is a way for me to manually add a custom data to multiple duct items.  Thanks.

CADmep™ Users / Re: Dynamic Holes in wrong location
« Last post by Dean-o on Yesterday at 06:40:32 PM »
I know the original post was from 2015, But does anyone have any additional input on the dynamic holes coming out on the wrong panels? I see it occurring in instances where a duct line rises or drops and the next joint with a hole in the side comes out with the hole on the top or bottom instead. According to the post the solution seems to run 2 piece duct instead, but I was hopeful there was a true solution out there. We have a Vicon Coil Line if that helps.
General Discussions / Re: Setting up breakpoints for duct hangers
« Last post by bparrell on Yesterday at 04:57:53 PM »
General Discussions / Setting up breakpoints for duct hangers
« Last post by bitterfitter on Yesterday at 02:20:36 PM »
Looking for help setting up my breakpoints for rectangular duct hung with 1/2 strap hangers.  I understand the length and depth inputs but I need to set break points based on the total of (width + depth).  Not sure how to do this in the support specs?
Example: when the depth(A)+width(B) is < or = 96, I can use 1/2 strap hangers.  Over that I can't.  AND the max width(B) is 60"... :)

How have you guys setup your specs to meet this? ???
CADmep™ Worksheets & Reports / Re: Tag Number in Elevation Tag
« Last post by DotNet on Jan 21, 2019, 07:33:41 PM »
I misread. You want to use them inside the Elevation Block. You're right, you have to use ADDREPORT or CTEXT for that, and Custom Data shenanigans for the Section Elevation.
CAMduct™ Users / Re: Automatic nesting
« Last post by VirtualPilot on Jan 21, 2019, 06:58:35 PM »
The Material assigned to the CID on the CAM determines the sheet size to be used, not sure if the program can do what you want...
CADmep™ Worksheets & Reports / Tag Number in Elevation Tag
« Last post by frozen3 on Jan 19, 2019, 11:58:39 PM »
Hey all,

Working with the elevation tags is easy, but I'd like to get the tag umbers in the block I'm using. I tried different attribute definitions such as TAG and NUMBER but no luck. Hey, it was worth a shot.

The other option is to do it the ADDREPORT way, which could potentially require calculations for different hangers, writing the section elevation the item's custom data field and so-on.

Thanks in advance!
CADmep™ Worksheets & Reports / Re: Piping and Plumbing Reports
« Last post by frozen3 on Jan 19, 2019, 11:51:58 PM »
Make sure in your report columns that system has a sort priority of 1 and size has a sort priority of 2.
Fabrication Parts in Revit® / Revit 2019.2
« Last post by davidratx on Jan 18, 2019, 03:54:08 PM »
Revit 2019.2 is available for download to those on subscription. The link below has some video clips explaining the updates. Many of these updates have long been requested and offer significant improvement to the modeling experience.
Pages: [1] 2 3 ... 10