Please follow the MicroStation Programming forum best practices.
Identify Your Platform
Please identify the version of MicroStation, or other product such as PowerDraft, that you are using: MicroStation CONNECT or MicroStation V8i. What is the 8-digit version number (e.g. 10.xx.yy.zz) of MicroStation?
The APIs supplied with MicroStation CONNECT are different to those supplied with MicroStation V8i. Consequently, our answers are likely to be different.
Code Syntax Highlighting
When you post code, use the Forum advanced editor's syntax highlighting tool. That's the icon that resembles a pencil:
Geographic Coordinate System
[quote user="Bill C"]How would you detach the current GCS with VBA?[/quote]
The GCS belongs to a VBA ModelReference. The following methods may be useful...
- ModelReference.GetGCS
- ModelReference.DeleteGCS
- ModelReference.WriteGCS
- Application.CreateGCSFromKeyName
Curiously, I don't see a method to attach a GCS to a model reference.