Saturday, June 28, 2008

Questions and Answers

Q. I WANT TO MAKE MICROSTATION APPLICATION *.DLL WHICH FILE TO REFERENCE TO USE TO MAKE APPLICATIONS OF MICROSTATION IN *.DLL OR *.EXE?
ANS: U ADD REFERENCE BY GOINIG TO in vb6
PROJECT>>>REFEREMCE>>
********************************************************
Bentley Microstation DGN 8.0 Object Library
Location: C:\Program Files\Bentley\Program\Microstation\ustation.exe
** *********************************************************
Microsoft Forms 2.0 Object Library
Location: C:\WINDOWS\system32\FM20.DLL
*******************************************
OLE Automation
Location: C:\WINDOWS\system32\stdole2.tlb
**************************************************
Visual Basic For Applications
Location: C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL
******************************************************

Thursday, May 1, 2008

101 ways to set your active level

Ok, well maybe not 101 ways, but enough of them anyway!
MicroStation V7:
1.Primary Tools tool box
2.Right side of the status bar.
3.Change Element Attributes with Level enabled
4.Match Element Attributes with Level enabled.
5.SmartMatch
6.Double click the desired level from the View Levels dialog
7.Double click the desired level from the Numbers tab in the Level Manager dialog
8.Double click the desired level from the Names tab in the Level Manager dialog
9.Select the desired level from the Names tab in the Level Manager dialog followed by Active
10.Double click the desired level from the Groups tab in the Level Manager dialog
11.Select the desired level from the Groups tab in the Level Manager dialog followed by Active
12.Keyin LV=[level_number], ie: LV=12
13.Keyin LV=[level_name], ie: LV=annotation
14.Keyin Active Level [level_number]
15.Keyin Active Level [level_name]

MicroStation V8:
1.From the Attributes tool box
2.Double click on the desired level in the Level Manager
3.Right-click and select Set Active from the Level Manager
4.Change Element Attributes with Level and Use Active Attributes enabled
5.Match Element Attributes with Level enabled.
6.SmartMatch
7.Double click the desired level in the Level Display dialog
8.Highlight the desired level followed by a Right Click > Set Active in the Level Display dialog
9.Keyin LV=[level_number], ie: LV=12
10.Keyin LV=[level_name], ie: LV=annotation
11.Keyin Active Level [level_number]
12.Keyin Active Level [level_name]


अगले पोस्ट me मैं सेल्स(cells) पर टिप्स भेजूँगा





Tuesday, February 19, 2008

Using OLE in MSTN

MicroStation can import files from external application such as Microsoft Word and Excel.
Link an Excel Sheet to MicroStation:
1. Open the Excel file and Select the amount of data you want to copy.
2. From the Excel pulldown Edit > Copy. The data is copied to the clipboard.
3. Open the MicroStation file you want to paste the Excel Sheet into.
4. From the MicroStation pulldown Edit > Paste Special. The Paste Special dialog appears.
5. From the list of Data Type select “Linked Microsoft Excel Worksheet”
6. Select the Paste icon.
7. In the Paste OLE Tool Settings dialog set the Method to By Size and set the appropriate scale.
8. Place a data point in the view to place the linked excel sheet.

Importing Options:
There are three ways to import the source files as pictures, embedded files, or linked files.
• A picture is a screen capture of the application. The image is static and is not updated when changes are made to the source.
• An embedded file is imported and saved into the DGN file. Edits made to the embedded file are saved in the DGN file.
• A linked file is imported to the DGN file but still resides in the original application. Edits are made to the source file and can be updated using the MicroStation Update link tool.

MicroStation Viewing:
When viewing a linked or embedded file in MicroStation it may appear shaded. This is due to the source application, Excel, being currently opened and its worksheet edited (see screen shot below). Once the source application is saved and closed the shading will not be seen in MicroStation.

OLE Updating:
After changes are made to the source application the data stored in the DGN file will need updating. OLE data can be updated from the MicroStation pulldown menu Edit > Update Links




Quick two-letter MicroStation key-ins

Although a graphical user interface is great for many things, sometimes it's faster to use two-letter MicroStation key-ins to adjust settings. For example, to set the active scale to 2.0, you can simply type "as=2" in the key-in browser. MicroStation has quite an extensive list of these two-letter key-ins for setting all manner of things from the active level and color, which just about everyone is familiar with, to saving or activating views. The following is a list of two-letter key-ins separated by categories (do not use a space before the equal sign for these key-ins):


View manipulation
OF= Turn off levels by number
ON= Turn on levels by number
RV= Rotate view(s) about center
WO= Set view origin
SV= Save view
VI= Attach saved view
DV= Delete saved view

Text and dimensioning
FT= Active font
DF= Opens font dialog box
TH= Active height
TW= Active width
TX= Active height and width
LL= Active line length
LS= Active line spacing
TB= Tab spacing for importing text
TI= Tag Increment amount
LD= Dimension level
TV= Upper and lower dimension tolerance limits

Settings

AA= Active angle

AS= Active scale

XS= Active x scale

YS= Active y scale

ZS= Active z scale

GU= Master/Grid

GR= Reference grid

KY= (Snap) Divisor

UR= (Unit Lock) Distance

Set element and pattern attributes

AP= Active pattern cell

LV= Active level

CO= Active color

PA= Active pattern angle

LC= Active line style

PD= Active pattern spacing

WT= Active line weight

PS= Active pattern scale

Precision input

XY= from origin along design files axes

DI= from last data or tentative point relative to view axes

DL= from last data or tentative point in design coordinates

DX= from last data or tentative point in view coordinates

AX= Distance from Auxiliary Coordinate System (ACS) origin

AD= Distance from last data or tentative point in ACS coordinates

Cells

AC= Set active cell and select place active cell tool with relative off

AR= Set active cell and select place active cell tool with relative on

CM= Place active cell matrix tool

PT= Active point

LT= Active terminator

TS= Terminator scale

CR= Edit cell information

CD= Delete cell from cell library

CC= Create cell

File management

RD= Open design file

XD= Open design file with active design's view configuration

RC= Attach cell library

RF= Attach reference file

DR= Displays contents of a text file

CT= Attach color table

AM= Attach and activate menu

AT= Activate tutorial

Database

AE= Define active entity

DA= Displayable attribute type

DB= Attach control file

DS= Specify fence filter

FI= Set database row as active entity

RA= Set attribute review selection criteria

RS= Name report table

Digitizing

SD= Active stream delta

ST= Active stream tolerance

User command

UC= Activate user command

UCC= Compile user command

UCI= User command index

OX= Retrieve user command index

Other

EL= Create element list file

FF= Copy fence contents to new design file

GO= Global origin

SF= Move fence contents to new design file