Results 1 to 7 of 7

Thread: ABS2007 Property set help

  1. #1
    ACA/AMEP Community Chair stelthorst's Avatar
    Join Date
    2003-10
    Location
    San Francisco CA
    Posts
    1,190
    Login to Give a bone
    0

    Default ABS2007 Property set help

    Hi All,

    Once again my lack of programming knowledge is haunting me. I want to create a property set (PS) that gives me the radius of bends. Unfortunately this is not one of the automatic properties of a conduit bend. (Don't ask me why)

    This gives me two alternatives. If I use the Part Name PS it reads "BENT CONDUIT EMT SET SCREW 60-RADIUS" The 60 RADIUS is all I need. Is there a way to add a formula PS that would only return the last part of the Part Name PS. Just to let you know I have several different radiuses in a drawing and I need to be able to distinguish between them so that we can order material.

    The second alternative is probably the cleaner way but it is also the one that I have less of a clue as to how to do it. This would require extracting the radius via code from the Conduit Fitting.

    This frustrates me because I know where I set the radius in the catalog, I know that ABS can read it because it will show up in the Part Name and other property sets but I don't know how to write the code to extract it myself.

    Any help with either method (or if you have other ideas) would be greatly appreciated.
    Last edited by stelthorst; 2007-03-28 at 12:14 AM.
    Scott Telthorst
    Quality Control Manager
    Helix Electric, Inc.
    www.helixelectric.com

    Some see the glass as half full, others as half empty. As an engineer I see the glass as twice as big as it needs to be. ~Unknown~

  2. #2
    Super Moderator david_peterson's Avatar
    Join Date
    2002-09
    Location
    Madison, WI
    Posts
    5,688
    Login to Give a bone
    0

    Default Re: ABS2007 Property set help

    Not knowing how these parts are created, I'm' not sure if this will help. I'm wondering if you can add either a attribute or something to the block that you can then create an automatic PSD for. I'm in the same place you are when it comes to these things; Lost. Do these get created via the Mview parts set to a catalog ro something? A little more info may help.

  3. #3
    ACA/AMEP Community Chair stelthorst's Avatar
    Join Date
    2003-10
    Location
    San Francisco CA
    Posts
    1,190
    Login to Give a bone
    0

    Default Re: ABS2007 Property set help

    Quote Originally Posted by david_peterson
    Not knowing how these parts are created, I'm' not sure if this will help. I'm wondering if you can add either a attribute or something to the block that you can then create an automatic PSD for. I'm in the same place you are when it comes to these things; Lost. Do these get created via the Mview parts set to a catalog ro something? A little more info may help.
    ABS uses catalogs for conduits, and conduit fittings. These catalogs are in addition to MVParts and if you click on a fitting and look at the properties it shows up as a Conduit Fitting and not an MVPart.

    The OOTB conduit fitting uses a multiplier of 6X the conduit diameter to create conduit bends. I have created my own conduit bends with radiuses of 24", 36", 48", 60", 10', 12.5' and 25'. We have projects that require these radius sizes in the specs. For example, the project I'm working on now requires 60" bends for conduits entering buildings and 12'-6" radius bends for all site conduits. I am trying to run a report of the underground conduit and fittings and need to show the radius of the bends in my schedule.

    Hope this helped clarify what I'm trying to do.
    Scott Telthorst
    Quality Control Manager
    Helix Electric, Inc.
    www.helixelectric.com

    Some see the glass as half full, others as half empty. As an engineer I see the glass as twice as big as it needs to be. ~Unknown~

  4. #4
    Super Moderator david_peterson's Avatar
    Join Date
    2002-09
    Location
    Madison, WI
    Posts
    5,688
    Login to Give a bone
    0

    Default Re: ABS2007 Property set help

    Just a thought here. If you have one block that gets read through the table/catalog and every conduit in the catalog will have a 60" radius regardless of size, I think you should be able to simply add a note in the block for the PSD to read. When I look at multi view block reference options in the Automatic propery source dialog box (inside the PSD style) I see listings like Description, and description from definition (I think I'd try that one first). I'm thinking that if you add this info (60" radius) in the block description (not the name) any block you create from that one, "should" (in threory) contain it. Just a thought. Now you can tell me how far off my rocker I am. Remember I only have ADT2005 to play with so I'm not sure what's available for you in the terms of automatic prop source options for those things. Hope this helps.

  5. #5
    Super Moderator dkoch's Avatar
    Join Date
    2003-03
    Location
    Philadelphia, PA
    Posts
    2,392
    Login to Give a bone
    0

    Default Re: ABS2007 Property set help

    Quote Originally Posted by stelthorst
    Hi All,

    Once again my lack of programming knowledge is haunting me. I want to create a property set (PS) that gives me the radius of bends. Unfortunately this is not one of the automatic properties of a conduit bend. (Don't ask me why)

    This gives me two alternatives. If I use the Part Name PS it reads "BENT CONDUIT EMT SET SCREW 60-RADIUS" The 60 RADIUS is all I need. Is there a way to add a formula PS that would only return the last part of the Part Name PS. Just to let you know I have several different radiuses in a drawing and I need to be able to distinguish between them so that we can order material.

    The second alternative is probably the cleaner way but it is also the one that I have less of a clue as to how to do it. This would require extracting the radius via code from the Conduit Fitting.

    This frustrates me because I know where I set the radius in the catalog, I know that ABS can read it because it will show up in the Part Name and other property sets but I don't know how to write the code to extract it myself.

    Any help with either method (or if you have other ideas) would be greatly appreciated.
    Are "Conduit Fittings" an ABS object type? Or are they something else [AutoCAD block, 3D solid, whatever] with extended entity data that ABS uses to recognize it as a "Conduit Fitting"? To change the radius of a "Conduit Fitting" can you simply change a number in the Properties palette, or do you have to change to the Style/Definition that has the desired radius embedded within it? I ask because it may make a difference in what the best approach would be.

    I do not have access to ABS and am not even close to being an "expert" on the ADT object model, but have had limited success [with a lot of help from others] in extracting data from an object. That data has to be "exposed" and the formulas end up being release-specific or include a section that determines the active release - which still needs to be updated for each new release. The ADT Help has a section called Architectural Desktop ActiveX Reference that contains subsections that describe the various objects and what properties can be accessed. If the radius property of a Conduit Fitting object is exposed to the ActiveX interface, you may be able to retrieve it with a formula property. Before going that route, you may find one of the following an easier method.

    Your post implies that the "Part Name" is available as an automatic property source, and that the radius is embedded in the part name. If the formatting of the part names is consistent, you could extract the radius information with a formula property and convert that to an integer or real number that could then be used for whatever purposes you need. The 10', 12.5' and 25' radii you mention in one of your replies gives me pause, unless in the part name those are expressed as 120, 150 and 300. Not that you could not work out a way to deal with a value in feet, but that would make the formula more complex. Ideally, the radius part of the part name would be a fixed number of characters and always occur at the same relative place in the name string. If your biggest radius were always less than 999 inches, then three digit would do.

    For example, suppose the naming convention were like this:
    [whatever text your heart desires here, of any length that ABS can handle]nnn-RADIUS
    where nnn is the radius in inches [24" = 024, etc]. Further allow that an automatic property called [PartName] has been definined and will contain the name of the Conduit Fitting as a string. The following would extract the radius and return the value as a real number:

    CDbl( Left ( Right ("[PartName]", 10), 3) )

    The Right function returns the rightmost ten characters of [PartName], as specified by the 10 parameter, which would give you "nnn-RADIUS". The Left function operates on that result, returning the specifice three leftmost characters, which would be the radius value, as a string. The CDbl function forces that string of numerals to be considered a real number.

    Extracting the value from the Part Name requires a somewhat rigid method of naming the parts. If some variation needs to be accommodated, the formula property would have to be able to deal with that.

    A third option exists if Conduit Fittings have styles or definitions to which a style-based PSD could be attached and if a given style always has the same radius. That would allow you to create a manual property in the style-based PSD, attach it to the Conduit Fitting style/definition, and enter the radius value. Not as satisfying as an automatically derived value, but beats manually entering the radius value on every single instance.

    The attached file was done in ADT 2004 and shows the sample formula above at work in a "simulated" test where the "PartName" is a manual property but the formula does the parsing and returns the radius. The property set is an object-based one attached to lines.
    Attached Files Attached Files

  6. #6
    ACA/AMEP Community Chair stelthorst's Avatar
    Join Date
    2003-10
    Location
    San Francisco CA
    Posts
    1,190
    Login to Give a bone
    0

    Default Re: ABS2007 Property set help

    Quote Originally Posted by dkoch
    Are "Conduit Fittings" an ABS object type? Or are they something else [AutoCAD block, 3D solid, whatever] with extended entity data that ABS uses to recognize it as a "Conduit Fitting"? To change the radius of a "Conduit Fitting" can you simply change a number in the Properties palette, or do you have to change to the Style/Definition that has the desired radius embedded within it? I ask because it may make a difference in what the best approach would be
    Yes Conduit Fittings are ABS objects. Basically they are parametric parts. The radius is a calculation within the conduit fitting style. You cannot access or change the radius from the properties palette. As mentioned before the OOTB conduit fitting style uses a calculation of 6X the diameter of the conduit to determine the radius. I have created my own styles with different radii by simply changing this calculation to a hard number (ie 120 for a 10' radius bend.

    My preferred method of extracting the radius would be to try to extract it from the style. If you have ideas as to how I can do it this way it would be much appreciated

    In the meantime I'm going to play with the other method you suggested. I have used the left and right functions in Excel and assumed they were available in ABS but didn't know the proper format for entering it.

    Thanks for your help and I'll post back with my success (or failure) in my attempt.
    Scott Telthorst
    Quality Control Manager
    Helix Electric, Inc.
    www.helixelectric.com

    Some see the glass as half full, others as half empty. As an engineer I see the glass as twice as big as it needs to be. ~Unknown~

  7. #7
    Super Moderator dkoch's Avatar
    Join Date
    2003-03
    Location
    Philadelphia, PA
    Posts
    2,392
    Login to Give a bone
    0

    Default Re: ABS2007 Property set help

    Quote Originally Posted by stelthorst
    My preferred method of extracting the radius would be to try to extract it from the style. If you have ideas as to how I can do it this way it would be much appreciated.
    It may be possible. Unfortunately, my approach to this is usually a combination of seeing if I can find what I want in the Help section on the Object Model [I assume ABS has a similar section for its objects], plugging it into a test formula and seeing if I can get it to work. When that fails, a post to the AutoCAD Architecture Customization Discussion Group [web browser or newsreader] has sometimes yielded some help from those more familiar with the object model that I, through VBA or .NET adventures they have undertaken. No doubt equally valuable help might be obtained from the AUGI groups devoted to customization - the advantage of the Autodesk group is that it is specific to ADT/ACA, so you will get people familiar with ADT objects in it.

    I will try to post some code later on that should allow you to "access" the object to which a Property Set is attached. Where to go from their, or whether the data you seek is exposed in ActiveX is likely beyond my ability to help.

    If you style or definition always has the same radius [or if the radius can be calculated from the conduit diameter], a manual property or two [and possibly a formula property to determine which method to use and/or do the calculation may be less ideal but more easily done.

Similar Threads

  1. AMEP2008 vs. ABS2007.1
    By finney13 in forum AMEP General
    Replies: 3
    Last Post: 2007-12-10, 07:34 PM
  2. Property Set problems in ABS2007.1
    By stelthorst in forum Style Management
    Replies: 5
    Last Post: 2007-12-06, 02:59 PM
  3. ABS2007 Property Set Formula Help
    By stelthorst in forum Style Management
    Replies: 2
    Last Post: 2007-03-01, 11:45 PM
  4. DST files in ABS2007
    By finney13 in forum Project Navigator
    Replies: 4
    Last Post: 2007-02-26, 06:18 PM
  5. ABS2007 Help with an elevation Property Set for a Mass Element
    By stelthorst in forum Style Management
    Replies: 6
    Last Post: 2007-02-26, 01:57 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
  •