AutoCAD MEP General

Reply
Valued Mentor
mdhutchinson
Posts: 2,283
Registered: ‎11-18-2003
Message 1 of 11 (443 Views)

Custom Properties in our MvPart Catalogs.

443 Views, 10 Replies
09-19-2012 12:09 PM

I was working to ready 2013 for deployment next week hopefully and was just walking through my prep...

... I have moved a number of VBScript based Formula Properties from our Property Sets to the MvPart catalog. This looks to be working quite well and eliminated several very long VBScript formulas in the process. Now the key values I need come in when the mvparts are inserted into the drawing. One of the properties is a sort key (decimal size real number) I use this in a MEP Schedule to get the mvparts sorted as I want in the schedule. Another is a decimal value I use for an elevation calculation subtracted from LocationZ to get the elevation i want in the schedule.

The issue I see now is that while these values can't be edited in Properties Palette Extended Data Tab, I see that they can be edited in MvPart Modify dialog. They are table based values because I need them to be different for each part size...  Is there a way I can prevent the user from editing these without setting their visiblity to false... or is this my only choice?

*Expert Elite*
Keith.Brown
Posts: 1,077
Registered: ‎03-13-2008
Message 2 of 11 (442 Views)

Re: Custom Properties in our MvPart Catalogs.

09-19-2012 12:15 PM in reply to: mdhutchinson

You could turn the custom sizing flag off for that particular part.  Unfortunately this will stop all customization for the part.  As long as you have all of your part sizes in the catalog it shouldnt be a problem.


Keith Brown AutoCAD MEP BLOG | RSS Feed
AutoCAD MEP 2014 | Revit 2014 | EastCoast CAD/CAM V6.1 | Visual Studio 2013
────────────────────────────────────
⁞|⁞ Please use Mark Solutions!.Accept as Solution and Give Kudos!Give Kudos as appropriate. Thank you!
Valued Mentor
mdhutchinson
Posts: 2,283
Registered: ‎11-18-2003
Message 3 of 11 (440 Views)

Re: Custom Properties in our MvPart Catalogs.

09-19-2012 12:20 PM in reply to: mdhutchinson

Sorry...  I failed to mention that this was a block based part... I don't believe there s such a field.

*Expert Elite*
Keith.Brown
Posts: 1,077
Registered: ‎03-13-2008
Message 4 of 11 (432 Views)

Re: Custom Properties in our MvPart Catalogs.

09-19-2012 01:30 PM in reply to: mdhutchinson

Whenever I try to change a custom field in one of my custom block based parts I always get an error message saying that "The desired part does not exist in the size needed in the current catalog and the part does not support custom sizing."  To be clear, the only thing I am trying to change is one of the custom parameters.  So I am not sure how you are able to change the information of a block based part when inserting it into your drawing.


Keith Brown AutoCAD MEP BLOG | RSS Feed
AutoCAD MEP 2014 | Revit 2014 | EastCoast CAD/CAM V6.1 | Visual Studio 2013
────────────────────────────────────
⁞|⁞ Please use Mark Solutions!.Accept as Solution and Give Kudos!Give Kudos as appropriate. Thank you!
Valued Mentor
mdhutchinson
Posts: 2,283
Registered: ‎11-18-2003
Message 5 of 11 (429 Views)

Re: Custom Properties in our MvPart Catalogs.

09-19-2012 02:19 PM in reply to: Keith.Brown

The Custom Properties cannot be properties intended to change the part 'graphics / solids' itself, but only the data it carries to the drawing. As I said... the two properties I am using are LIST based. For each of the part sizes in the block based part... I have a different value assigned. I use the values to affect what I get when scheduling the parts. In this way I can shift the load of what I was doing with Select CASE VBScript statement keying on the part name to the MvPart catalog itself. The formula properties are much simpler than they were with the select CASE statements.

The DecSize value I use to sort the schedule in a better way and the ElevToBtmAdj field I use to subtract from LocationZ value to get the value I need to show in the schedule for correct field installation.

 

See the image I've uploaded.

 

FYI: By the way... Apparently I cannot set the property Visibility to false... If I do the value doesn't make it to the drawing. I tried but didn't pursue it past the first effort.

*Expert Elite*
Keith.Brown
Posts: 1,077
Registered: ‎03-13-2008
Message 6 of 11 (422 Views)

Re: Custom Properties in our MvPart Catalogs.

09-19-2012 02:33 PM in reply to: mdhutchinson

mdhutchinson wrote:

.......They are table based values.........


 

Ahhh!!! In your original post you said they were table based not list based.  That makes a difference.  If you can make them table based instead of list based then you will not be able to change them.  They will be locked into the value you put into the table.


Keith Brown AutoCAD MEP BLOG | RSS Feed
AutoCAD MEP 2014 | Revit 2014 | EastCoast CAD/CAM V6.1 | Visual Studio 2013
────────────────────────────────────
⁞|⁞ Please use Mark Solutions!.Accept as Solution and Give Kudos!Give Kudos as appropriate. Thank you!
Valued Mentor
mdhutchinson
Posts: 2,283
Registered: ‎11-18-2003
Message 7 of 11 (417 Views)

Re: Custom Properties in our MvPart Catalogs.

09-19-2012 02:44 PM in reply to: Keith.Brown

ooh... my bad.

 

When I do MvPart Modify I get access to... well... to a LIST. But the value in mvpart modify defaults to a dash when I edit one of the parts in the dwg... I can click it to drop it down... there are the values in a LIST... Makes complete sense they would be LIST based. But I just checked in the Parameter Configuration... to my suprise they are Table based. 

The values of each part when I look at it in Extended Data tab of Properties Palette are what I assigned to them in the catalog.

 

Could I still be doing something wrong?

*Expert Elite*
Keith.Brown
Posts: 1,077
Registered: ‎03-13-2008
Message 8 of 11 (395 Views)

Re: Custom Properties in our MvPart Catalogs.

09-20-2012 01:16 PM in reply to: mdhutchinson

Hmm....it is weird that it shows table based yet gives you an option for a list in the mvpart modify box.  Is it possible for you to share your part with me so I can look at it?


Keith Brown AutoCAD MEP BLOG | RSS Feed
AutoCAD MEP 2014 | Revit 2014 | EastCoast CAD/CAM V6.1 | Visual Studio 2013
────────────────────────────────────
⁞|⁞ Please use Mark Solutions!.Accept as Solution and Give Kudos!Give Kudos as appropriate. Thank you!
Valued Mentor
mdhutchinson
Posts: 2,283
Registered: ‎11-18-2003
Message 9 of 11 (392 Views)

Re: Custom Properties in our MvPart Catalogs.

09-20-2012 01:25 PM in reply to: Keith.Brown

See two attached files... dwg and xml

that should be enough.

 

your thoughts would be appreciated!

 

I have several other 'hanger' parts of various kinds... all of them are the same in regards to property data and organization.

 

The Style based MvPart Property Set we have in our template with a few other properties I've added - where the much simpler formula properties are done.

*Expert Elite*
Keith.Brown
Posts: 1,077
Registered: ‎03-13-2008
Message 10 of 11 (387 Views)

Re: Custom Properties in our MvPart Catalogs.

09-20-2012 01:47 PM in reply to: mdhutchinson

This gives me a good reason to go ahead and install MEP 2013.  Give me a little bit to double check after I have it installed but what i think is going on is that it is showing the list of avalable sizes/elevations/etc.  Have you actually tried picking one?  If it doesnt match up with the correct part then it should error out and say unable to create custom part.  What I mean is that for a 30" hanger the ElevToBtmAdj is 4.31 but it shows a list of all of the available ElevToBtmAdj in the part.  But you should only be able to select the one that is 4.31 because it is the one that goes with that part.  When I choose a value other than 4.31 it will load up the size that goes with that part.  Are you seeing this same behavior?

 

I cannot actually insert the part into my drawing until I install 2013 so I might see something different once that happens.


Keith Brown AutoCAD MEP BLOG | RSS Feed
AutoCAD MEP 2014 | Revit 2014 | EastCoast CAD/CAM V6.1 | Visual Studio 2013
────────────────────────────────────
⁞|⁞ Please use Mark Solutions!.Accept as Solution and Give Kudos!Give Kudos as appropriate. Thank you!

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

New AutoCAD MEP Category!

The AutoCAD MEP forum has moved into it's very own category page, and can no longer be found within the Additional Product Forums.

Ask the Community