Home > Software engineering >  About VB for CAD secondary development question (VBA)
About VB for CAD secondary development question (VBA)

Time:09-30

Come into contact with a project recently, need change the proportion of the drawings in VB, as shown in figure originally a line length is 180, I will according to the proportion to be enlarged or reduced


Help you a great god, did the VB related API or function code to implement this function, the younger brother thank humbly,

CodePudding user response:

The use VBA...

CodePudding user response:

CAD for the development of customized version of the client,,, can't use VBA function. Only through VB external development mode to realize now,

CodePudding user response:

I mean amend the vba code modify retransplantation in vb...

CodePudding user response:

Yes, but change ratio of API functions in VBA is some, but don't know how to modify for VB,

CodePudding user response:

You don't know the vba and vb relationship?

CodePudding user response:

reference 5 floor Topc008 reply:
that you don't know the relationship between the vba and vb?

The development of vba is within the CAD model?
The modified proportional code I have, but I don't know how to convert to VB code can identify

CodePudding user response:

refer to 6th floor adfdsfsdfdsf response:
Quote: refer to the fifth floor Topc008 reply:

You don't know the vba and vb relationship?

The development of vba is within the CAD model?
That modify the proportion of the code, I have but I don't know how to convert VB code can identify

http://bbs.mjtd.com/thread-111783-1-1.html

CodePudding user response:

refer to 6th floor adfdsfsdfdsf response:
Quote: refer to the fifth floor Topc008 reply:

You don't know the vba and vb relationship?

The development of vba is within the CAD model?
That modify the proportion of the code, I have but I don't know how to convert VB code can identify

AutoCAD support VBA secondary development, the software also has the corresponding COM interfaces,
If the software installed correctly, then in VB6 code (or other languages),
Can use the GetObject () to obtain the corresponding Application object reference, (when the software has been run)
Can also use CreateObject () to create the corresponding Application object references, and automatically start the software process,
I have no contact with CAD, don't know its specific Application object name (the name of the class) is what kind of, you can see in the VBA environment,
The software must also has its type library, you quote it in VB6 project, you can direct the New object,
With object references, can through the reference, invoke the interface methods to operate,
You can consider the use of secondary development of Office in VB6 code, how much the online,
  •  Tags:  
  • API
  • Related