Converting an object to a viewport

Converting an object to a viewport

Anonymous
Not applicable
149 Views
2 Replies
Message 1 of 3

Converting an object to a viewport

Anonymous
Not applicable
Hello,
Does anyone know how to use VBA to convert an object to a viewport? While
preparing plan sets, I occasionally use the "-VPORTS" command with it's
"objects" option word to convert irregular shapes, circles, and regions to
viewports. Now, I'm looking to automate the process using VBA and can't find
information on how to do this. Does anyone know how to do this? Is this
something that "SendKeys" could help out with by sending the "manually
typed" instructions to the command line? Thanks for you help...
SPW

--
Product: LDDT2
Development Platform: VBA
OS: NT 4.0 SP 4
0 Likes
150 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
You'd have to assign an ObjectID to the viewport's group code 340.
Unfortunately, I don't think VB has direct access to entity definition data.
If there's not a method or property associated with something, it's pretty
much off limits.

SPW wrote in message
news:85bk98$rql8@adesknews2.autodesk.com...
> Hello,
> Does anyone know how to use VBA to convert an object to a viewport? While
> preparing plan sets, I occasionally use the "-VPORTS" command with it's
> "objects" option word to convert irregular shapes, circles, and regions
to
> viewports. Now, I'm looking to automate the process using VBA and can't
find
> information on how to do this. Does anyone know how to do this? Is this
> something that "SendKeys" could help out with by sending the "manually
> typed" instructions to the command line? Thanks for you help...
> SPW
>
> --
> Product: LDDT2
> Development Platform: VBA
> OS: NT 4.0 SP 4
>
>
>
0 Likes
Message 3 of 3

Anonymous
Not applicable
I missed the SendKeys part. Looks like you're using A2K so try SendCommand
instead.

Frank Oquendo wrote in message
news:85bll4$rr08@adesknews2.autodesk.com...
> You'd have to assign an ObjectID to the viewport's group code 340.
> Unfortunately, I don't think VB has direct access to entity definition
data.
> If there's not a method or property associated with something, it's pretty
> much off limits.
>
> SPW wrote in message
> news:85bk98$rql8@adesknews2.autodesk.com...
> > Hello,
> > Does anyone know how to use VBA to convert an object to a viewport?
While
> > preparing plan sets, I occasionally use the "-VPORTS" command with it's
> > "objects" option word to convert irregular shapes, circles, and regions
> to
> > viewports. Now, I'm looking to automate the process using VBA and can't
> find
> > information on how to do this. Does anyone know how to do this? Is
this
> > something that "SendKeys" could help out with by sending the "manually
> > typed" instructions to the command line? Thanks for you help...
> > SPW
> >
> > --
> > Product: LDDT2
> > Development Platform: VBA
> > OS: NT 4.0 SP 4
> >
> >
> >
>
>
0 Likes