Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2000i and VB question

Status
Not open for further replies.

lrfcbabe

Programmer
Jul 19, 2001
108
US
Why does "ent = sslsppipe.item(i)" not work?
Am I missing something? Layer, Color, Linetype etc. all work.
Set SSLSPPipe = Documents(0).SelectionSets.Add("SSLSPPipe")
gpCode(0) = -4
dataVal(0) = &quot;<AND&quot;
gpCode(1) = 8
dataVal(1) = &quot;XTP*&quot;
gpCode(2) = 0
dataVal(2) = &quot;LINE&quot;
gpCode(3) = -4
dataVal(3) = &quot;AND>&quot;
groupCode = gpCode
dataCode = dataVal
SSLSPPipe.Select acSelectionSetAll, , , groupCode, dataCode
intNoItems = SSLSPPipe.Count
intTemp = 1
If intNoItems > 0 Then
For i = 0 To SSLSPPipe.Count - 1
ent = SSLSPPipe.Item(i)
strEntLayer = SSLSPPipe.Item(i).Layer
strEntType = SSLSPPipe.Item(i).ObjectName '.OwnerID
strEntColor = SSLSPPipe.Item(i).Color
strLineType = SSLSPPipe.Item(i).Linetype
strLineLinetypeScale = SSLSPPipe.Item(i).LinetypeScale
 
&quot;Set SSLSPPipe = Nothing&quot; does not seem to work.
I have to close Cad and reopen to run this more than once.
Error Selection already Exists. I need to set it nil.
 
So it is not just &quot;(setq sslsppipe nil)&quot;. Seems like this would be quicker. Can I echo this command to cad and set sslsppipe nil?
 
No,
That will just clear memory space, but the object remains.
 
Got it all working, thanks for all of the input.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top