Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Reference file Renumbering

180 views
Skip to first unread message

CaDad

unread,
Jan 16, 2001, 2:17:05 PM1/16/01
to
Is there a way or utility to renumber my reference files. I would like to
eliminate any holes in the sequence of reference file slots so when I attach
nested refs they will all be together.

Scott


Inga Morozoff

unread,
Jan 16, 2001, 2:59:25 PM1/16/01
to sco...@betadesign.com
In article <t697dm9...@corp.supernews.com>,
"CaDad" <scotth@betadesign(nospam).com> wrote:

..snipped...


> Is there a way or utility to renumber my reference files.

Hi Scott,

Take a look at MOVESLOT.MC written by Harry Stegeman...This is an MDL
application that allows the user to move Reference File slot numbers.
You can get it from http://www.geocities.com/ccmbinaries/h-stegeman/
It's in the MDLS-H-STEGMAN.ZIP file.

--
Best Regards,
Inga Morozoff
WorkPlace Wisdom Inc.


Sent via Deja.com
http://www.deja.com/

CaDad

unread,
Jan 16, 2001, 3:56:28 PM1/16/01
to
Thanks for the reply. This works great for moving reference file slots to an
already existing slot number, but if you want to move an existing reference
file to an empty slot number 1 this won't work.

Still Looking,
Scott

Inga Morozoff <moro...@workplacewisdom.com> wrote in message
news:94296o$8b1$1...@nnrp1.deja.com...

Inga Morozoff

unread,
Jan 17, 2001, 10:00:30 AM1/17/01
to
In article <t69d824...@corp.supernews.com>,

"CaDad" <scotth@betadesign(nospam).com> wrote:
> Thanks for the reply. This works great for moving reference file
slots to an
> already existing slot number, but if you want to move an existing
reference
> file to an empty slot number 1 this won't work.
>
> Still Looking,


Harry....you still out there? :-)

Inge

Harry Stegeman

unread,
Jan 17, 2001, 11:29:13 AM1/17/01
to
Scott and Inge,

You can't move to an empty slot because there is no type 5 (or type 66)
element to receive the write, and you have to write to save the slot
move.
To write to an empty slot would require creating an attachment. You may
be
able to do this with mdlRefFile_createAttachment(), I don't know.

Anyway it doesn't seem to be necessary. If you can move a file from any
slot to any other occupied slot it is a simple matter to get the files
in the order
that you want them, which is the object of moveslot().
Of course it would be better if a groups of files could be manipulated
in
the dialog box.

Regards,

Harry Stegeman

Solo

unread,
Jan 17, 2001, 3:45:51 PM1/17/01
to
At Wed, 17 Jan 2001 17:29:13 +0100, Harry Stegeman at
brink...@kpd.nl posted this excerpt, which is in dire need of
replying by yours truly:

> Anyway it doesn't seem to be necessary. If you can move a file from any
> slot to any other occupied slot it is a simple matter to get the files
> in the order
> that you want them, which is the object of moveslot().

Could you create some dummy attachments to receive the new slots?

> Of course it would be better if a groups of files could be manipulated
> in
> the dialog box.

MS/J does offer sorting by slot number, filename, descripiton or
logical.

--
Solo
[Add 55441 after solo to reply via email]

Pennc

unread,
Jan 18, 2001, 2:47:21 PM1/18/01
to
Long time ago, there was a MDL called RENUMREF. If it will help, let me
know, and I will sendsource codes to you to play with. (I have it but don't
know any thing about it)

CaDad <scotth@betadesign(nospam).com> wrote in message
news:t697dm9...@corp.supernews.com...

Raymond Singer

unread,
Jan 25, 2001, 2:02:22 PM1/25/01
to
Scott

This is how you reorder reference file slots in edg
you can use any slot number

The first thing I do is decide which slots I
want to change. I haven't found a way to print
out a list of reference files with the slot
numbers, file names and logical names, so I
will open the reference file dialog box in
microstation making sure I can see all the
reference files listed and press the print
screen key on my keyboard. I then open my
graphics program (VUEPRO32) and press Ctrl-V.
The screen shot is then displayed. I edit the
the graphics so all I can see is the list of
reference files with slot no., file name and
logical name. I print this out. On the print out
next to the slot number I write down the slot
number that I want it to be when reordered.

Next I make a backup copy of the file.

Then I open the file using edg.

type in the following commands

EdG> SET SEARCH / ALL
EdG> SET SEARCH / TYPE=5
EdG> SET SEARCH / LEVEL=9
EdG> SET DISPLAY / BRIEF
EdG> SET DISPLAY / TEXT

If all your reference files have logical
names this will identify the reference file
attachment. If your reference files don't have
logical file names then add the next line.

EdG> SET DISPLAY / PARAMETERS

Reference file attachment are normally
type=5, level=9 but sometimes they are
a type=66, level=5. I have set the search
only for the normal type. I try to find
the first instance by just entering the
following. I end up with something like this

EdG> FIRST
1777 (5) reference file DATA Level = 9
file = kenotb2.dgn
logical name = pg2

or this

EdG> FIRST
1777 (5) reference file DATA Level = 9
file = kenotb2.dgn
attachment = 2
fbopts = slot-in-use,DB-diff,snap
fdopts = display
View = 1
display(WT,PAT,DIM)
levels = 1,2,5
View = 2
display(WT,PAT,NODES,ED,CONSTR,DIM)
levels = 1,2,5
logical name = pg2

This reference file is attachment=2 or slot number 2 and
logical name pg2. This file will show up second in the
reference file dialog box. To change it to show up first
you must change the slot number (attachment) to 1.
enter the next line

EdG> MODIFY ELEMENT(52)=(HIGH)1

The 1 at the end of this line is slot number. after hitting
return or enter you will get the following

Total of 1 element modified

EdG>

Hit return and edg will display the information for the
next reference file attachment. Note the attachment for
this one. If you want to change it hit the up arrow key
and it will display the last keyin edit the number on
the right in this case 1 to the number you want. If you
don't want to modify the slot number just hit return and
edg will display the information for the next reference file.
Continue doing this until you have changed all of the slot
numbers you want. If all your reference files don't show up
you must do a search for type 66 by entering the following

EdG> SET SEARCH / ALL
EdG> SET SEARCH / TYPE=66
EdG> SET SEARCH / LEVEL=5
EdG> FIRST
1782 (66) MS reference data Level = 5
file = kenotb2.dgn
attachment = 18
fbopts = slot-in-use,DB-diff,snap
fdopts = display
View = 1
display(WT,PAT,DIM)
levels = 1,2,5
View = 2
display(WT,PAT,NODES,ED,CONSTR,DIM)
levels = 1,2,5
logical name = pg1

Repeat the above procedure to change slot numbers.

I don't know what will happen if after changing
some slot numbers you end up with two reference file
attachments with the same slot number and try to open
the file in microstation. I'm always very careful not
to let this happen. Edg changes the file when you type
in the command and you can corrupt the file if you do
something wrong, so always make a backup before you use
edg.

Raymond

"CaDad" <scotth@betadesign(nospam).com> wrote in message
news:t697dm9...@corp.supernews.com...

Inga Morozoff

unread,
Jan 25, 2001, 4:34:21 PM1/25/01
to RSI...@wi.rr.com
In article <2L_b6.22449$Af.5...@typhoon.mw.mediaone.net>,

"Raymond Singer" <RSI...@wi.rr.com> wrote:
> Scott
>
> This is how you reorder reference file slots in edg

...lots of good stuff snipped...


Wow! Very well written Raymond, thanks for sharing this with us!

--
Best Regards,
Inga Morozoff
WorkPlace Wisdom Inc.

CaDad

unread,
Jan 26, 2001, 8:27:36 AM1/26/01
to
Raymond,

Thanks for the note. It'll be very useful.

As far as listing the slot numbers of reference files, I have a old
reference file lister, if you will, called rlist.exe. I don't recall where I
got if from. The following is a sample of its output:

2d Design File: G:\BETAMS\XX.DGN 45056 01-26-01
7:50a

At# Filename, Logical name, Description Elem # Tp Dsp Snp Loc Scale
--- ---------------------------------------- ------ -- --- --- --- --------
1 archsym.dgn,a,a 21 5 On On On 8.000000
4 BSdetail1.dgn,Logical1,a 100 5 Off On On 8.000000
5 BSplan.dgn,Logical2,a 101 5 On On On 1.000000
6 BSelevIn.dgn,Logical3,a 102 5 Off On On 8.000000
4 attached reference files

Let me know if you're interested in it.

Scott

"When it comes to thought,
some people stop at nothing."


Raymond Singer <RSI...@wi.rr.com> wrote in message
news:2L_b6.22449$Af.5...@typhoon.mw.mediaone.net...


> Scott
>
> This is how you reorder reference file slots in edg
> you can use any slot number
>
> The first thing I do is decide which slots I

... Snip ...

Rainer Wiesel

unread,
Jan 29, 2001, 2:38:57 PM1/29/01
to
Hi Raymond
Do'nt forget the Type 66, Level 5 References. This are 2D-references on
3d-files.


Raymond Singer schrieb:

rainer.wiesel.vcf

roadweary

unread,
Jan 31, 2001, 1:17:57 PM1/31/01
to
In article <2L_b6.22449$Af.5...@typhoon.mw.mediaone.net>,
"Raymond Singer" <RSI...@wi.rr.com> wrote:
<snip>
>
> EdG> MODIFY ELEMENT(52)=(HIGH)1
>
</snip>

Hey Raymond,

What is the syntax to modify the filename to ".dgn" as posted by
Larry Whitt in his "Tip: Reference File Self Attachment" post?
(the following is a link to the post that I hope will work)

http://x59.deja.com/threadmsg_md.xp?
thitnum=13&AN=721910015.1&mhitnum=0&CONTEXT=980963840.2084700204

Raymond Singer

unread,
Feb 5, 2001, 8:43:32 AM2/5/01
to
Roadweary

This seems to work

EdG> MODIFY ELEMENT(20)=46

Raymond

"roadweary" <mhar...@my-deja.com> wrote in message
news:959ksa$olu$1...@nnrp1.deja.com...

roadweary

unread,
Feb 7, 2001, 1:52:13 PM2/7/01
to

> EdG> DISPLAY/TEXT
> 4776 (5) reference file DATA Level = 9
> file = sht70.dgn
> logical name = pg4.1
>
> This is before
> (display/dump gives you the value for each word in an element - in
hex by
> default - it shows up better in edg)
>
> EdG> DISPLAY/DUMP
> Element # 4776, Block = 605, Word = 126, byte = 309498
> 1 0509 0109 0000 0000 0000 0000 0000 0000
> 9 ffff ffff ffff ffff ffff ffff 0000 00fb
> 17 0400 0000 0009 6873 3774 2e30 6764 006e
translation h s 7 t . 0 g d n ==sht70.dgn

and you changed it to ...

> 17 0400 0000 0009 002e 3774 2e30 6764 006e
translation . 7 t . 0 g d n == .t70.dgn

maybe we should also change word 19 (number of charaters) to 1 to avoid
reading it that way? Could also zero out words 21-51 witha script just
to clean up.

modify element(21)=0
modify element(22)=0 correct?

Raymond Singer

unread,
Feb 7, 2001, 7:43:14 PM2/7/01
to

> maybe we should also change word 19 (number of charaters) to 1 to avoid
> reading it that way? Could also zero out words 21-51 witha script just
> to clean up.
>
> modify element(21)=0
> modify element(22)=0 correct?
>
>
RW
you are not getting my full post with Deja, this was the other part

As you can see word 20 (002e) low byte is 2e hex or 46 decimal or "." ASCII.
The high byte is 00 or NULL this must stop it from looking any further for
more characters in the file name. Word 19 (0009) is suppose to be how many
characters are in the file name. I don't know if this will cause any
problems
because word 19 is '9' instead '1' or words 21 thru 24 are not NULL. A more
proper
way might have been

EdG> MODIFY ELEMENT(19)=4

Total of 1 element modified

EdG> MODIFY ELEMENT(20)=(LOW)46

Total of 1 element modified

EdG> MODIFY ELEMENT(20)=(HIGH)100

Total of 1 element modified

EdG> MODIFY ELEMENT(21)=(LOW)103

Total of 1 element modified

EdG> MODIFY ELEMENT(21)=(HIGH)110

Total of 1 element modified

EdG> DISPLAY/TEXT
4776 (5) reference file DATA Level = 9

file = .dgn
logical name = pg4.1

EdG> DISPLAY/DUMP
Element # 4776, Block = 605, Word = 126, byte = 309498
1 0509 0109 0000 0000 0000 0000 0000 0000
9 ffff ffff ffff ffff ffff ffff 0000 00fb

17 0400 0000 0004 642e 6e67 2e30 6764 006e
25 0000 0000 0000 0000 0000 0000 0000 0000
33 0000 0000 0000 0000 0000 0000 0000 0000
41 0000 0000 0000 0000 0000 0000 0000 0000
49 0000 0000 0000 0400 0076 0002 a09c a09c
57 a09c a09c a09c a09c a09c a09c ffff ffff
65 ffff ffff ffff ffff ffff e7ff ffff ffff
73 ffff e7ff ffff ffff ffff e7ff ffff ffff
81 ffff e7ff ffff ffff ffff e7ff ffff ffff
...... more

in addition to this you could also put NULL's in words 22 thru 24

The first method was much easier and quicker though if microstation
doesn't give you heartburn about it.

A work around, so you don't have to do too much in EDG is to go into
file attachment (double click on file in the reference dialog box in
microstion) and attach a dummy file with a name that is just one
character long with no extension like 'n'. Use the first method

EdG> DISPLAY/TEXT
4776 (5) reference file DATA Level = 9

file = n
logical name = pg4.1

EdG> MODIFY ELEMENT(20)=46

Total of 1 element modified

EdG> DISPLAY/DUMP


Element # 4776, Block = 605, Word = 126, byte = 309498
1 0509 0109 0000 0000 0000 0000 0000 0000
9 ffff ffff ffff ffff ffff ffff 0000 00fb

17 0400 0000 0001 002e 0000 0000 0000 0000
25 0000 0000 0000 0000 0000 0000 0000 0000
33 0000 0000 0000 0000 0000 0000 0000 0000
41 0000 0000 0000 0000 0000 0000 0000 0000
49 0000 0000 0000 0400 0076 0002 a09c a09c
57 a09c a09c a09c a09c a09c a09c ffff ffff
65 ffff ffff ffff ffff ffff e7ff ffff ffff
73 ffff e7ff ffff ffff ffff e7ff ffff ffff
81 ffff e7ff ffff ffff ffff e7ff ffff ffff
...... more

This way every thing comes out neet and clean, the way it's
suppose to be.

By the way, always make a backup copy of your file before using EDG.

Raymond


0 new messages