0.0
Low commit activity in last 3 years
No release in over a year
Wrapping of microstation using win32ole to automate and control from ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

> 0.0.0
> 0.0.0
~> 4
>= 0.1.3
> 0.0.0
> 0.0.0
> 0.0.0
> 0.0.0
>= 0.0
> 0.0.0
> 0.0.0
> 0.0.0

Runtime

> 0.0.0
> 0.0.0
> 0.0.0
>= 0.0.0
 Project Readme

microstation

DESCRIPTION:

this is a gem that wraps Bentley Microstation using the WIN32OLE library.

Requirements

  • Microstation Installed

  • MRI

Installation

Microstation can be installed using (a) the gem install command, (b) Bundler

(a) gem install

Open a terminal and type $ gem install microstation

Tip
Upgrading your installation

If you have an earlier version of microstation installed you can update it using:

$ gem update microstation

If you install a new version of the gem using gem install instead of gem update, you’ll have multiple versions installed. If that’s the case, use the following gem command to remove the old versions:

$ gem cleanup microstation

(b) Bundler

  1. Create a Gemfile in the root folder of your project (or the current directory)

  2. Add the asciidoctor gem to your Gemfile as follows:

    source 'https://rubygems.org'
    gem 'microstation'
    # or specify the version explicitly
    # gem 'microstation', '0.0.5'
  3. Save the Gemfile

  4. Open a terminal and install the gem using:

    $ bundle

To upgrade the gem, specify the new version in the Gemfile and run bundle again. Using bundle update is not recommended as it will also update other gems, which may not be the desired result.

Usage

text_in_drawing = []
Microstation.run do |app|
   sc = app.create_scanner do
       include_color(3)
       include_level(3)
   end
   app.open_drawing('./test.dgn') do |drawing|
     drawing.scan_text do |text|
        text.reverse! if text =~ /Reverse/  # things that modify thetext_in_drawing
        puts text.to_s
     end
     drawing.scan_model( sc) do |ele|
end
     drawing.save_as_pdf
   end
end

Getting Help

The Asciidoctor project is developed to help you easily write and publish your content. But we can’t do that without your feedback! We encourage you to ask questions and discuss any aspects of the project on the discussion list, Twitter or IRC.

Mailing list

{uri-discuss}

#Twitter (Chat)

#asciidoctor hashtag

#Gitter (Chat)

Gitter

#IRC (Chat)

{uri-irc}[#asciidoctor] on FreeNode IRC

Further information and documentation about Asciidoctor can be found on the project’s website.

{uri-project}/[Home] | {uri-news}[News] | {uri-docs}[Docs]

The project’s source code, issue tracker, and sub-projects are on github

Source repository (git)

https://github.com/dsisnero/microstation

Issue tracker

https://github.com/dsisnero/microstation/issues

Microstation organization on GitHub

https://github.com/dsisnero

Copyright © 2012-2016 Dominic Sisneros and the Microstation-Ruby Project. Free use of this software is granted under the terms of the MIT License.

See the LICENSE file for details.