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

Available code in autocad 2006

6 REPLIES 6
Reply
Message 1 of 7
gilseorin
241 Views, 6 Replies

Available code in autocad 2006

Hi, all.
In Autocad 2007 the following code is available.
Dim ftr(3) As TypedValue
ftr(0) = New TypedValue(-4, " ftr(1) = New TypedValue(0, "PolyLine")
ftr(2) = New TypedValue(0, "LWPolyLine")
ftr(3) = New TypedValue(-4, "OR>")
But, In Autocad 2006, it is not available.
What's the equivalent code in AutoCad2006?
Some help?
Thanks in advance.
6 REPLIES 6
Message 2 of 7
MarkPendergraft
in reply to: gilseorin

Dim Values() As TypedValue = {New TypedValue(DxfCode.Start, "INSERT,TEXT,MTEXT")}
Dim prFilter As SelectionFilter = New SelectionFilter(Values)
Message 3 of 7
gilseorin
in reply to: gilseorin

Thank you for your reply,Cadkid82.
But,what I need is the available code in autocad 2006 as attached available one in autocad 2007.
More help,plz. Thanks in advance.
Message 4 of 7
MarkPendergraft
in reply to: gilseorin

what are you trying to filter?

The code i posted is the code you would need to filter objects in 2006. The code you gave me doesnt really make any sense to me. I'll admit that i'm not real familiar with the -4 DXF code, but it seems to me that you can't have an operator before a statement.....

What group codes do you want to filter, and what are the filter values specifcally.

for example 8 is the groupcode for layer.
0 is the name of the object, etc.

just list them in this format:

8 - DEFPOINTS
0 - LINE, MTEXT, INSERT

etc.. and i'll see what answer i come up with. Message was edited by: Cadkid82
Message 5 of 7
gilseorin
in reply to: gilseorin

Pardon my poor expression.
I attached drawing file for reference.
Message 6 of 7
MarkPendergraft
in reply to: gilseorin

Well there is good news and bad news.....
Bad news first, there is no real equivalent code for what you are trying to do, because there is a bug in the managed API.

Good news, other people have found workarounds.

http://discussion.autodesk.com/thread.jspa?messageID=4918754

check out that thread, they discuss the issue in detail.
Message 7 of 7
gilseorin
in reply to: gilseorin

Thank you so much, Cadkid82.

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