How can I select Lines?
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
How can I select Lines?

 
Post new topic   Reply to topic    CADForums.net Forum Index -> MicroStation
Author Message
AL-MARAGHI
Guest





Posted: Tue Jul 13, 2004 10:04 pm    Post subject: How can I select Lines? Reply with quote

Hi,

I have thousands of lines in hundreds of files are on different angle,
and they are crossing each other.. (They are on same attributes).

Is there any way to select the lines which are on a specific angle?
Or can I do that with EDG?

If yes how?

Thanks in advance for any responds..

Back to top
Volker Huefner
Guest





Posted: Wed Jul 14, 2004 11:18 am    Post subject: Re: How can I select Lines? Reply with quote

Al-Maraghi...

you could use a microstation macro, this would be an easy way.

something like:

filepos=element.fromFile(0, 0)
Do While filepos>=0
select case element.Type
case MBE_LINE
if(TestAngleWithTolerance)
DoSomeThing
end select
filepos=element.fromFile(filepos+element.fileSize, 0, true,
true)
loop


On 13 Jul 2004 11:04:49 -0700, AL-MARAGHI <maraghi@batelco.com.bh> wrote:

Quote:
Hi,

I have thousands of lines in hundreds of files are on different angle,
and they are crossing each other.. (They are on same attributes).

Is there any way to select the lines which are on a specific angle?
Or can I do that with EDG?

If yes how?

Thanks in advance for any responds..



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Back to top
AL-MARAGHI
Guest





Posted: Wed Jul 14, 2004 8:56 pm    Post subject: Re: How can I select Lines? Reply with quote

"Volker Huefner" <volker.huefner.NoSpam@ab-date.de> wrote in message news:<opsa389tu8tmta5j@entw-1.ab-es.de>...
Quote:
Al-Maraghi...

you could use a microstation macro, this would be an easy way.

something like:

filepos=element.fromFile(0, 0)
Do While filepos>=0
select case element.Type
case MBE_LINE
if(TestAngleWithTolerance)
DoSomeThing
end select
filepos=element.fromFile(filepos+element.fileSize, 0, true,
true)
loop


Thanx Volker..

But I have no any idea about macros creating.. only cut from some
places & paste to collect a macro.

But when I tried to do what you mentioned, it poped up with a massage
says that: "Compilation failed at line 1. Syntax Error"

Back to top
Volker Huefner
Guest





Posted: Thu Jul 15, 2004 12:45 pm    Post subject: Re: How can I select Lines? Reply with quote

Al-Maraghi...

this was not a complete macro, just a snipset, to give you an idea.

Macros start with "sub main" and ends with "end sub", but this wound help
you very much.

the problem are the parts "TestAngleWithTolerance" were you have to build
some code to detect the right elements, i.g. by angle. and the
"DoSomeThing", were you must tell the macro, what you want to do with the
element.

Perhaps you find someone with an better idea in the official Bentley
newsgroup at news.viecon.com

Volker



On 14 Jul 2004 09:56:28 -0700, AL-MARAGHI <maraghi@batelco.com.bh> wrote:

Quote:
"Volker Huefner" <volker.huefner.NoSpam@ab-date.de> wrote in message
news:<opsa389tu8tmta5j@entw-1.ab-es.de>...
Al-Maraghi...

you could use a microstation macro, this would be an easy way.

something like:

filepos=element.fromFile(0, 0)
Do While filepos>=0
select case element.Type
case MBE_LINE
if(TestAngleWithTolerance)
DoSomeThing
end select
filepos=element.fromFile(filepos+element.fileSize, 0, true,
true)
loop


Thanx Volker..

But I have no any idea about macros creating.. only cut from some
places & paste to collect a macro.

But when I tried to do what you mentioned, it poped up with a massage
says that: "Compilation failed at line 1. Syntax Error"



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Back to top
Lorys Lea
Guest





Posted: Fri Jul 16, 2004 2:44 pm    Post subject: Re: How can I select Lines? Reply with quote

You could do this in V8 with the batch process.
you get your macro first that selects by angle.. sorry not in my league.
but then you tellit what you want to do with command line commands
and then you just tell the batch processor which files you want to do this
to and away it goes..
In theory you should be able to get a macro to do what you want in V7 even
if you pay a programmer then create a script file that would open all the
files one at at time and perform the macro operation and close the file and
procede to the next..
try posting to bentley.microstation.v7.programming newsgroup
at discussion.bentley.com
select by using angle thats too hard for me!

--
A guy in Australia at home after work
=============================
Sad isn't it?
"AL-MARAGHI" <maraghi@batelco.com.bh> wrote in message
news:a9e0cf34.0407131004.2da1fa@posting.google.com...
Quote:
Hi,

I have thousands of lines in hundreds of files are on different angle,
and they are crossing each other.. (They are on same attributes).

Is there any way to select the lines which are on a specific angle?
Or can I do that with EDG?

If yes how?

Thanks in advance for any responds..
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> MicroStation All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB