Selectionset's Select vicSelectionSetAll fails

The VBA forum deals with IntelliCAD 2000 VBA (Visual Basic for Applications) issues.

Moderator: CMS Inc

Post Reply
nm_ranga
Newbie
Posts: 2
Joined: Sun Sep 17, 2006 11:01 pm
Location: Chennai

Selectionset's Select vicSelectionSetAll fails

Post by nm_ranga » Mon Sep 18, 2006 1:19 am

hello all,

i am new to VBA in progeCAD. But have been working for 4 yrs in autocadb VBA.

i dont know what the prob is following snippet

Dim DXFNumber(0) As Integer
Dim DXFName(0) As Variant

' set the filter options
DXFNumber(0) = 0
DXFName(0) = "LINE"


' add the selection set name to the drawing database
Set objSS = ThisDocument.SelectionSets.Add("SetName")

' populate the selection set with all the drawing entity objects
objSS.Select vicSelectionSetAll , , , DXFNumber, DXFName

This does not work. Eror "Type mismatch occurs"

....so i tried just
objSS.Select vicSelectionSetAll

but that also pop ups an error
nm_ranga
Newbie
Posts: 2
Joined: Sun Sep 17, 2006 11:01 pm
Location: Chennai

Post by nm_ranga » Fri Sep 22, 2006 8:25 pm

I got it !!!!

ProgeCAD does not support *Late binding techniques" it seems !!!

If i dont put following line before using SSet the code wont work

Dim objSS As SelectionSet

Even if you put

Dim objSS As object

and then use latebinding .. it wont work !!

So NO NO NO latebinding in ProgeCAD.

Bye all!!

[This message has been edited by nm_ranga (edited 09-22-2006).]

[This message has been edited by nm_ranga (edited 09-22-2006).]
Post Reply