Results 1 to 3 of 3

Thread: 2020 VBA can't find Property Set Definitions in AutoCAD Arch

  1. #1
    Moderator fmayfield's Avatar
    Join Date
    2015-12
    Posts
    9
    Login to Give a bone
    0

    Default 2020 VBA can't find Property Set Definitions in AutoCAD Arch

    I'm porting a client from 2017 to 2020 ACA. There is some VBA code that reads the Property Set Definitions to continue filling out a schedule when a block is inserted.

    Anyway, the exact same code/drawing works in 2017 but not in 2020.

    My question for the group is why, and how can I make this work? It is critical to the upgrade.


    Here are the relevant pieces of code:


    Dim objSchApp As New AecScheduleApplication
    Dim objPSDs As AecSchedulePropertySetDefs
    Dim objPSD As AecSchedulePropertySetDef

    Set objPSDs = objSchApp.PropertySetDefs(ThisDrawing.Database)


    A few lines later ...


    If Not objPSDs Is Nothing Then (this proves to be false, bypassing all the real work had it been true)


    I'm an AutoLISP guy, and know not much about VBA. Any help getting this fixed is appreciated.


    Frank

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    5,735
    Login to Give a bone
    0

    Default Re: 2020 VBA can't find Property Set Definitions in AutoCAD Arch

    Check for missing references. Go to Tools>References and look for one that is preceded by "MISSING:". Uncheck it, then scroll down looking for a similar one with the correct year.
    C:> ED WORKING....

  3. #3
    Moderator fmayfield's Avatar
    Join Date
    2015-12
    Posts
    9
    Login to Give a bone
    0

    Default Re: 2020 VBA can't find Property Set Definitions in AutoCAD Arch

    Thanks Ed...

    Been there, done that. None are missing, and all appear updated - if necessary - from 2017

    AEC Schedule is updated to 8.2 (from 7.1 I believe). Odd thuogh, the AutoCAD Type LIbrary says 2019 (not 2020). I can't seem to change that.

Similar Threads

  1. MvPart Property Set Definitions
    By bradg in forum AMEP General
    Replies: 18
    Last Post: 2008-12-18, 07:27 PM
  2. property set definitions not updating
    By jasontirone in forum ACA General
    Replies: 3
    Last Post: 2008-01-03, 10:15 PM
  3. Property Set Definitions for Schedules
    By jaroguy in forum ACA General
    Replies: 1
    Last Post: 2006-10-27, 04:34 PM
  4. How to Update Property Set Definitions?
    By jsnyder.68308 in forum ACA General
    Replies: 4
    Last Post: 2005-05-11, 10:57 PM
  5. Property Set Definitions
    By Beth Powell in forum ACA General
    Replies: 4
    Last Post: 2004-07-02, 03:37 PM

Tags for this Thread

Posting Permissions

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