How do I determine the right IMPORTS / REFERENCES to add?
All --
The following code works well in PROJECT A
line.
I've copied all of the IMPORTS statements from PROJECT A into PROJECT B but I still get an error that says
EXPECTING A VALID DATA TYPE (INTEGER) . . . CHAR 54
How do I determine what is needed in PROJECT B to make this code perform like it does in PROJECT A?
Thanks.
-- Matt
The following code works well in PROJECT A
'Turn on the RECTANGULAR ROI TOOL With Select.Roi.ToolsCommands.Rectangle(Nothing) .Image = .GetImage("Select.Roi.Tools.Rectangle") .Overlay = Overlays.OverlayType.ROIOverlay .Tool = Overlays.OverlayToolType.McGraphObjRect .Run(ThisApplication.ActiveImage) End WithWhen pasted into basically a NEW PROJECT B, the LOAD fails on the
.Overlay = Overlays.OverlayType.ROIOverlay
line.
I've copied all of the IMPORTS statements from PROJECT A into PROJECT B but I still get an error that says
EXPECTING A VALID DATA TYPE (INTEGER) . . . CHAR 54
How do I determine what is needed in PROJECT B to make this code perform like it does in PROJECT A?
Thanks.
-- Matt
0
Best Answers
-
Matt,
You can export the references from project A and import them in project B using the Import/Export Dependencies feature on the Edit tab of the Workbench.
Pierre0 -
Matt,
If you look at the type of the Select.Roi.ToolsCommands.Rectangle property (Tool class), it is defined in Assembly: MediaCy.Commands.Overlays (Module: MediaCy.Commands.Overlays.dll)
Pierre0
Answers
-
Pierre --
Thank you for your response and introducing me to a new tool.
Also . . .
By TRIAL AND ERROR, I determined that
MEDIACY.COMMANDS.OVERLAYS.DLL
is the REFERENCE that PROJECT B needs to use the.Overlay = Overlays.OverlayType.ROIOverlay
statement within'Turn on the RECTANGULAR ROI TOOL With Select.Roi.ToolsCommands.Rectangle(Nothing) .Image = .GetImage("Select.Roi.Tools.Rectangle") .Overlay = Overlays.OverlayType.ROIOverlay .Tool = Overlays.OverlayToolType.McGraphObjRect .Run(ThisApplication.ActiveImage) End With
Is there an OFFICIAL way to trace which DLL is needed?
The AUTOMATION HELP FILE does not seem to say within
Image-Pro Premier Automation Help
ToolsCommands ClassAutomation Reference ► MediaCy.Automation.Select.Roi ► ToolsCommands Visual Basic
Thanks.
-- Matt
0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions