+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 32
  1. #1
    Senior Member Lee Roy's Avatar
    Computer Details
    Lee Roy's Computer Details
    Operating System:
    Windows 7 Professional 64-bit
    Computer:
    HP Z400
    CPU:
    Intel Xeon W 3565 @ 3.2GHz
    RAM:
    16GB
    Graphics:
    ATI FirePro V5900
    Primary Storage:
    OCZ Vertex 4 - 256GB - Sata III - SSD
    Secondary Storage:
    Seagate Barracuda 1TB 7200rpm
    Monitor:
    Dual - HP Compaq LA2405wg
    Discipline
    Multi-disciplinary
    Lee Roy's Discipline Details
    Occupation
    CAD/BIM Manager
    Discipline
    Multi-disciplinary
    Details
    Architectural, Mechanical, Plumbing, Electrical...JOAT
    Using
    Revit 2014
    Join Date
    Apr 2011
    Location
    Visalia, CA
    Posts
    415

    Default AEC Project Number (field?)

    Registered forum members do not see this ad.

    I'm looking to do an If/Then for a list of AEC Project Numbers. However, I can't find the AEC Project Number field to create the list. I'm stuck before I start.

    Help?

    Thank you.
    "The thing about quotes on the internet is that you cannot confirm their validity." - Abraham Lincoln
    I -edit- a lot, sorry.
    The rotary engine is the most efficient way of converting fuel to noise ever invented.
    If my post sounds offensive, but can be meant in a non-offensive manner...I meant the latter.

  2. #2
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,932

    Default

    Is this for Revit (which you list as using), or for an AutoCAD Vertical?

    AFAIK, Revit is relegated to .NET development, whereas AutoCAD products allow for LISP development; just not for all aspects of the Database. If the latter we should be able to help you out. Just post what version, and vertical you're using.
    "Potential has a shelf life." - Margaret Atwood

  3. #3
    Senior Member Lee Roy's Avatar
    Computer Details
    Lee Roy's Computer Details
    Operating System:
    Windows 7 Professional 64-bit
    Computer:
    HP Z400
    CPU:
    Intel Xeon W 3565 @ 3.2GHz
    RAM:
    16GB
    Graphics:
    ATI FirePro V5900
    Primary Storage:
    OCZ Vertex 4 - 256GB - Sata III - SSD
    Secondary Storage:
    Seagate Barracuda 1TB 7200rpm
    Monitor:
    Dual - HP Compaq LA2405wg
    Discipline
    Multi-disciplinary
    Lee Roy's Discipline Details
    Occupation
    CAD/BIM Manager
    Discipline
    Multi-disciplinary
    Details
    Architectural, Mechanical, Plumbing, Electrical...JOAT
    Using
    Revit 2014
    Join Date
    Apr 2011
    Location
    Visalia, CA
    Posts
    415

    Default

    Sorry, it's for AutoCAD MEP 2011/2012.

    We use all Revit's and ACAD's, I just prefer Revit.
    "The thing about quotes on the internet is that you cannot confirm their validity." - Abraham Lincoln
    I -edit- a lot, sorry.
    The rotary engine is the most efficient way of converting fuel to noise ever invented.
    If my post sounds offensive, but can be meant in a non-offensive manner...I meant the latter.

  4. #4
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,932

    Default

    No worries; just wanted to clarify... I have AMEP 2012 installed, I'll skim the Developer Documentation.
    "Potential has a shelf life." - Margaret Atwood

  5. #5
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,932

    Default

    Give this a try:

    Code:
    (vl-load-com)
    
    (defun c:ProjectHistory (/ key descendents)
    
      (setq key (strcat "HKEY_CURRENT_USER\\"
                        (vlax-product-key)
                        "\\Project History\\"
                )
      )
    
      (if (setq descendents (vl-registry-descendents key ""))
        (progn
          (terpri)
          (prompt "\n  >>  PROJECT HISTORY ")
          (terpri)
          (textpage)
          (foreach val descendents
            (prompt (vl-registry-read key val))
          )
        )
        (prompt (strcat "\n** No projects found ** \n" key))
      )
      (princ)
    )
    "Potential has a shelf life." - Margaret Atwood

  6. #6
    Senior Member Lee Roy's Avatar
    Computer Details
    Lee Roy's Computer Details
    Operating System:
    Windows 7 Professional 64-bit
    Computer:
    HP Z400
    CPU:
    Intel Xeon W 3565 @ 3.2GHz
    RAM:
    16GB
    Graphics:
    ATI FirePro V5900
    Primary Storage:
    OCZ Vertex 4 - 256GB - Sata III - SSD
    Secondary Storage:
    Seagate Barracuda 1TB 7200rpm
    Monitor:
    Dual - HP Compaq LA2405wg
    Discipline
    Multi-disciplinary
    Lee Roy's Discipline Details
    Occupation
    CAD/BIM Manager
    Discipline
    Multi-disciplinary
    Details
    Architectural, Mechanical, Plumbing, Electrical...JOAT
    Using
    Revit 2014
    Join Date
    Apr 2011
    Location
    Visalia, CA
    Posts
    415

    Default

    What should I be expecting as an output? I got a huge history of my project navigator.
    "The thing about quotes on the internet is that you cannot confirm their validity." - Abraham Lincoln
    I -edit- a lot, sorry.
    The rotary engine is the most efficient way of converting fuel to noise ever invented.
    If my post sounds offensive, but can be meant in a non-offensive manner...I meant the latter.

  7. #7
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,932

    Default

    Quote Originally Posted by Lee Roy View Post
    What should I be expecting as an output? I got a huge history of my project navigator.
    You received exactly what the code was supposed to do... I needed to know if I am looking at the correct information, before I can push that info into any other format (i.e., the IF/COND statement in the OP). If this information is not correct, then I'm putting the cart before the horse, so-to-speak.

    ... Is this the information you want to compare against?
    "Potential has a shelf life." - Margaret Atwood

  8. #8
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,932

    Default

    Oh... Each descendent for that registry key has a number; not sure if that is the project number, or if it is just an AMEP generated number? I don't really know enough about AMEP frankly. We're just testing it to see if it is a viable addition to our Civil 3D projects for buried pressure pipes. Any clarification would make my helping easier (if not possible! LoL).
    "Potential has a shelf life." - Margaret Atwood

  9. #9
    Senior Member Lee Roy's Avatar
    Computer Details
    Lee Roy's Computer Details
    Operating System:
    Windows 7 Professional 64-bit
    Computer:
    HP Z400
    CPU:
    Intel Xeon W 3565 @ 3.2GHz
    RAM:
    16GB
    Graphics:
    ATI FirePro V5900
    Primary Storage:
    OCZ Vertex 4 - 256GB - Sata III - SSD
    Secondary Storage:
    Seagate Barracuda 1TB 7200rpm
    Monitor:
    Dual - HP Compaq LA2405wg
    Discipline
    Multi-disciplinary
    Lee Roy's Discipline Details
    Occupation
    CAD/BIM Manager
    Discipline
    Multi-disciplinary
    Details
    Architectural, Mechanical, Plumbing, Electrical...JOAT
    Using
    Revit 2014
    Join Date
    Apr 2011
    Location
    Visalia, CA
    Posts
    415

    Default

    Kind of...

    Z:\Active Projects\<project manager>\(<project number>) <project name>\AutoCAD Project Navigator\<project name>\<project name>.apj

    Our file structure puts the project number in the directory path, so the text is there. Drawing on that would be difficult as the directory changes from one project to the next, so the length of the directory path would never be a constant.

    I was thinking that AutoCAD would also hold the Project Number in an AEC field. In Project Navigator, Project tab, the "Number" field.
    "The thing about quotes on the internet is that you cannot confirm their validity." - Abraham Lincoln
    I -edit- a lot, sorry.
    The rotary engine is the most efficient way of converting fuel to noise ever invented.
    If my post sounds offensive, but can be meant in a non-offensive manner...I meant the latter.

  10. #10
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,932

    Default

    Registered forum members do not see this ad.

    I'm not worried about the file path being inconsistent, as I can simply parse the file path into a list of strings which represent the directories, as shown here.

    I still must be missing something, I just don't know what ???

    ct_field.aec.project.number.png
    "Potential has a shelf life." - Margaret Atwood

Similar Threads

  1. Field the reads total number of layouts
    By YZ in forum AutoCAD Drawing Management & Output
    Replies: 5
    Last Post: 28th Mar 2013, 02:37 am
  2. Project Navigator - Job Number as Prefix on Folders
    By c2phace in forum CAD Management
    Replies: 3
    Last Post: 22nd May 2012, 10:08 pm
  3. Replies: 4
    Last Post: 29th Dec 2010, 06:28 pm
  4. Field Edit or Field Input Automation
    By KAPC in forum AutoLISP, Visual LISP & DCL
    Replies: 9
    Last Post: 17th Feb 2010, 09:18 pm
  5. Field to display number of sheets in set
    By YZ in forum AutoCAD Drawing Management & Output
    Replies: 0
    Last Post: 24th Aug 2009, 03:39 am

Bookmarks

Posting Permissions

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