.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I select from screen

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
391 Views, 0 Replies

How can I select from screen

Hi Guys,

 

I am using vb.net with AutoCAD 2010. What I am trying is do select object from screen with filter(XData filter)

 

When I use vb6 I use objsset.SelectOnScreen varType,varData

But in .net it seems not working

Any help

Thanks

My code is

 

 

 

 

 

 

code is in a class

 

 

Public Sub func()'--Display message

m_objDrawing.Utility.Prompt("Please select fixtures you want to assign")

Try

 

 

'--Select Fixtures

 

objFixSSet = SelectionSetAdd(m_objDrawing,"temp") '--this is my function to add a selectionset

 

varType(0) = 1001

varData(0) = STR_XDATA_FIXTURE

objFixSSet.SelectOnScreen(varType, varData)

 

 

Dim objFixSSet As Autodesk.AutoCAD.Interop.AcadSelectionSet"TempFixture")Dim varType(0) As Integer, varData(0) As VariantTypeIf objFixSSet.Count = 0 Then

g_objDrawing.Utility.Prompt(

 

 

"Please select at least on fixture to assign to zone")Return

 

 

End If

MsgBox(objFixSSet.Count)

 

 

 

 

 

 

Catch ex As Exception

End Try End Sub

 

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost