| Author |
Message |
AL-MARAGHI
Guest
|
Posted:
Wed Nov 17, 2004 8:35 pm Post subject:
Is it possible?? |
|
|
Hi everybody..
I have a question for long time ago with no answere..
I hope that I'll get it here.
Well I have some files, each file containes thousands of lines which
are crossing each other..
What really I need right now is to select the lines which are on same
angle (suppose angle 90 degree)..
Is that possible? & how?
Thanx in advance for any respond.
|
|
| Back to top |
|
 |
Jeffrey Malter
Guest
|
Posted:
Thu Nov 18, 2004 3:00 am Post subject:
Re: Is it possible?? |
|
|
Hello again Al-Maraghi,
IIRC you are using v7. It is certainly possible to write a uStn BASIC macro
that can scan through all the elements in a dgn file, examine each line
element, determine the angle of that line element, and add the element to a
selection set if it meets your defined criteria. After the macro finishes,
you will be left with an active selset that you may process manually. uStn
BASIC exists to do exactly this type of thing, to examine large amounts of
data and process them according to the programmer's needs.
Do you have any experience with uStn BASIC (even with using the macro
recorder)? If not, get busy reading the basichlp.hlp file <grin>. Let us
know what your experience level is & we can certainly help get you going on
your macro. It is not the most simple problem, but it is not horribly
complicated either, so I am sure you can make a good effort at it.
BTW thank you for your kind words at the end of the Undo Clip Boundary
thread. This newgroup is all about users helping other users. I've noticed
you yourself helping others by answering some questions!
Best regards,
Jeffrey Malter
"AL-MARAGHI" <maraghi@batelco.com.bh> wrote in message
news:a9e0cf34.0411170735.72257342@posting.google.com...
| Quote: | Hi everybody..
I have a question for long time ago with no answere..
I hope that I'll get it here.
Well I have some files, each file containes thousands of lines which
are crossing each other..
What really I need right now is to select the lines which are on same
angle (suppose angle 90 degree)..
Is that possible? & how?
Thanx in advance for any respond. |
|
|
| Back to top |
|
 |
AL-MARAGHI
Guest
|
Posted:
Thu Nov 18, 2004 6:07 pm Post subject:
Re: Is it possible?? |
|
|
Hi Jeffrey..
Thank you for you responding..
Well, unfortunately I don't have any experience with ustn basic except
running them!!
I knew that my problem can be solved by a macro or mdl if available
somewhere on the web..
Maybe only one or two times I created a macro by recording the clicks
for very simple things, but no more.. even when I tried to refer to
the macro help file I couldn't get of it, maybe because of my bad
English plus the no foundation about the basic. (BTW where can I find
the help file which you told about?).
Because all of that I'am trying to find any available solution or free
macro or mdl.
Thanx again
|
|
| Back to top |
|
 |
Dave Preston
Guest
|
Posted:
Wed Nov 24, 2004 12:24 am Post subject:
Re: Is it possible?? |
|
|
I replied to your email that you sent me at work, but have had no response.
I offered to try and resolve it if you sent me the file and give a clear
understanding of what you want to achieve. I believe you want to replace the
2 lines that cross each other with a cell containing 2 lines that cross?
That way you can extract the cell origin co-ordinates. Correct?
--
Regards
Dave Preston
"AL-MARAGHI" <maraghi@batelco.com.bh> wrote in message
news:a9e0cf34.0411180507.283791d3@posting.google.com...
| Quote: | Hi Jeffrey..
Thank you for you responding..
Well, unfortunately I don't have any experience with ustn basic except
running them!!
I knew that my problem can be solved by a macro or mdl if available
somewhere on the web..
Maybe only one or two times I created a macro by recording the clicks
for very simple things, but no more.. even when I tried to refer to
the macro help file I couldn't get of it, maybe because of my bad
English plus the no foundation about the basic. (BTW where can I find
the help file which you told about?).
Because all of that I'am trying to find any available solution or free
macro or mdl.
Thanx again |
|
|
| Back to top |
|
 |
AL-MARAGHI
Guest
|
Posted:
Fri Nov 26, 2004 11:11 pm Post subject:
Re: Is it possible?? |
|
|
Hi Dave..
Sorry for that as you said that I didn't respond.
Well I had a problem with my pc, some one hacked it & destroyed most
of the files + that I couldn't get the new emails.. because of that I
didn't get your email.
I'll try to send you a copy of the file by Saturday from the work.
What I really need is that to get the coordinates of each intersection
of the 2 lines to place cell instead.
Is that clear?? I hope I could explain it clearly.. |
|
| Back to top |
|
 |
Dave Preston
Guest
|
Posted:
Fri Nov 26, 2004 11:25 pm Post subject:
Re: Is it possible?? |
|
|
What I meant was, do you want me to place a cell for you on the
intersection?
--
Regards
Dave Preston
"AL-MARAGHI" <maraghi@batelco.com.bh> wrote in message
news:a9e0cf34.0411261011.51c8850c@posting.google.com...
| Quote: | Hi Dave..
Sorry for that as you said that I didn't respond.
Well I had a problem with my pc, some one hacked it & destroyed most
of the files + that I couldn't get the new emails.. because of that I
didn't get your email.
I'll try to send you a copy of the file by Saturday from the work.
What I really need is that to get the coordinates of each intersection
of the 2 lines to place cell instead.
Is that clear?? I hope I could explain it clearly.. |
|
|
| Back to top |
|
 |
AL-MARAGHI
Guest
|
Posted:
Sat Nov 27, 2004 8:21 pm Post subject:
Re: Is it possible?? |
|
|
Yes Dave..
Exactly as u said: place a cell on the intersection. |
|
| Back to top |
|
 |
Dave Preston
Guest
|
Posted:
Sat Nov 27, 2004 11:30 pm Post subject:
Re: Is it possible?? |
|
|
Post or send me the file and I'll see what I can do
--
Regards
Dave Preston
"AL-MARAGHI" <maraghi@batelco.com.bh> wrote in message
news:a9e0cf34.0411270721.21899140@posting.google.com...
| Quote: | Yes Dave..
Exactly as u said: place a cell on the intersection. |
|
|
| Back to top |
|
 |
José Martínez
Guest
|
Posted:
Mon Nov 29, 2004 10:59 pm Post subject:
Re: Is it possible?? |
|
|
Yes it is.
I have writen some code in VB that is cappable of intersections detection. I
is one of my very first and almost unique expericence in programming tasks,
so it's surelly a kind of "a canyon to kill flies" but works and I wolud be
pleased sharing it.
The program finds self-intersections (segments belonging to same lstring),
the common point for lstrings connected at their endings, at the joint of a
T, and it is tolerance-sensitive for solving 3d problems where propper
intersections are statistically rare.
It has been programed to run on a text file containing two polyline
definition and just shows the result in a list-box. So you must be able to
implement the algorithm in Microstation Basic, MDL and add the few lines to
direct the ouput to a place cell command... sounds easy ;-) and so you are
encouraged to share the resulting app.
Are you still interested? Is someone?... please programmers don't laught at
this proto-beginer.
José
"AL-MARAGHI" <maraghi@batelco.com.bh> escribió en el mensaje
news:a9e0cf34.0411170735.72257342@posting.google.com...
| Quote: | Hi everybody..
I have a question for long time ago with no answere..
I hope that I'll get it here.
Well I have some files, each file containes thousands of lines which
are crossing each other..
What really I need right now is to select the lines which are on same
angle (suppose angle 90 degree)..
Is that possible? & how?
Thanx in advance for any respond. |
|
|
| Back to top |
|
 |
Chris Zakrewsky
Guest
|
Posted:
Tue Nov 30, 2004 4:22 am Post subject:
Re: Is it possible?? |
|
|
| Quote: | please programmers don't laught
|
Real programmers don't laugh... they just smile ;-).
Go ahead.
--
Best regards / Med bästa hälsningar,
/Chris Z.
"José Martínez" <jmr@ega.uva.es> wrote in message news:cofo1r$eks$1@cabezon.cpd.uva.es...
| Quote: | Yes it is.
I have writen some code in VB that is cappable of intersections detection. I
is one of my very first and almost unique expericence in programming tasks,
so it's surelly a kind of "a canyon to kill flies" but works and I wolud be
pleased sharing it.
The program finds self-intersections (segments belonging to same lstring),
the common point for lstrings connected at their endings, at the joint of a
T, and it is tolerance-sensitive for solving 3d problems where propper
intersections are statistically rare.
It has been programed to run on a text file containing two polyline
definition and just shows the result in a list-box. So you must be able to
implement the algorithm in Microstation Basic, MDL and add the few lines to
direct the ouput to a place cell command... sounds easy ;-) and so you are
encouraged to share the resulting app.
Are you still interested? Is someone?... please programmers don't laught at
this proto-beginer.
José
"AL-MARAGHI" <maraghi@batelco.com.bh> escribió en el mensaje
news:a9e0cf34.0411170735.72257342@posting.google.com...
Hi everybody..
I have a question for long time ago with no answere..
I hope that I'll get it here.
Well I have some files, each file containes thousands of lines which
are crossing each other..
What really I need right now is to select the lines which are on same
angle (suppose angle 90 degree)..
Is that possible? & how?
Thanx in advance for any respond.
|
|
|
| Back to top |
|
 |
Dave Preston
Guest
|
Posted:
Tue Nov 30, 2004 12:53 pm Post subject:
Re: Is it possible?? |
|
|
8-(
--
Regards
Dave Preston
"Chris Zakrewsky" <for-my-address-look@www.ustation.se> wrote in message
news:KaOqd.9798$d5.88460@newsb.telia.net...
| Quote: | please programmers don't laught
Real programmers don't laugh... they just smile ;-).
Go ahead.
--
Best regards / Med bästa hälsningar,
/Chris Z.
"José Martínez" <jmr@ega.uva.es> wrote in message
news:cofo1r$eks$1@cabezon.cpd.uva.es...
Yes it is.
I have writen some code in VB that is cappable of intersections
detection. I
is one of my very first and almost unique expericence in programming
tasks,
so it's surelly a kind of "a canyon to kill flies" but works and I wolud
be
pleased sharing it.
The program finds self-intersections (segments belonging to same
lstring),
the common point for lstrings connected at their endings, at the joint
of a
T, and it is tolerance-sensitive for solving 3d problems where propper
intersections are statistically rare.
It has been programed to run on a text file containing two polyline
definition and just shows the result in a list-box. So you must be able
to
implement the algorithm in Microstation Basic, MDL and add the few lines
to
direct the ouput to a place cell command... sounds easy ;-) and so you
are
encouraged to share the resulting app.
Are you still interested? Is someone?... please programmers don't laught
at
this proto-beginer.
José
"AL-MARAGHI" <maraghi@batelco.com.bh> escribió en el mensaje
news:a9e0cf34.0411170735.72257342@posting.google.com...
Hi everybody..
I have a question for long time ago with no answere..
I hope that I'll get it here.
Well I have some files, each file containes thousands of lines which
are crossing each other..
What really I need right now is to select the lines which are on same
angle (suppose angle 90 degree)..
Is that possible? & how?
Thanx in advance for any respond.
|
|
|
| Back to top |
|
 |
Jeffrey Malter
Guest
|
Posted:
Tue Nov 30, 2004 11:36 pm Post subject:
Re: Is it possible?? |
|
|
"Chris Zakrewsky" <for-my-address-look@www.ustation.se> wrote in message
news:KaOqd.9798$d5.88460@newsb.telia.net...
| Quote: | Real programmers don't laugh... they just smile ;-).
|
"Dave Preston" <dave@davidcpreston.co.uk> wrote in message
news:JFVqd.5$1Q1.4@newsfe2-win.ntli.net...
IMO guru MDL programmers must use binary smileys, e.g., 1000). Then Dave
will write a VBA script to translate them.
jM |
|
| Back to top |
|
 |
|
|
|
|