IMAGE FILES for CAMERA SIMULATION . . .
2018-11-12-155341
All --
Is there a way from CODE to change the IMAGE FILE that is used by the CAPTURE SIMULATION FEATURE?
I have have a folder with about 60 images that are a Z SERIES that I would like to open via the CAPTURE MODULE instead of doing a FILE OPEN.
If my CODE knows what SIMULATION IMAGE would make sensed to pump through the CAPTURE MODULE, is there a way to set this up?
I recorded the act of changing this setting and nothing when into NEWMACRO.
I am currently doing this with FILE OPEN COMMANDS but I am working to get the CAMERA STUFF up and running with no camera connected.
Thank you in advance for your assistance on this.
-- Matt
0
Best Answer
-
Hi Matt,
Yes, the following references and imports should be added:
MediaCy.IQL.Capture
MediaCy.Commands
Best regards,
Trey
0
Answers
-
Hi Matt,
The following function will allow you to programmatically change the simulation file.Public Function Sim_File(FilePath As String) As SimpleScript Sim_File = New SimpleScript Dim SimFileAttr As McCaptDevAttribute With Capture.CaptureCommands.GetAttribute(Nothing) '.AttrID = mcCaptAttrIDs.mcatImageFilePath .AttrID = 135 .Run() SimFileAttr = .Attribute End With If SimFileAttr IsNot Nothing Then SimFileAttr.Value = FilePath End If End Function
0 -
2018-11-13-105835Trey --Thank you for that information.I will attempt to wire that in to my code the next time I open it up.Is there an IMPORT / REFERENCE / DEPENDENCY that needs to be set up to support anything within the FUNCTION SIM_FILE?Thanks.-- Matt
0 -
2018-11-16-094600Trey --Thank you very much for the CODE and the IMPORTS which support it.-- Matt
0 -
2022-05-11-174603Trey --I am working to use the CODE you provided above withIP 10.0.11I am getting an the error shown below.It looks like the WORKBENCH does not like
McCaptDevAttribute
I tried to change it toMediaCy.IQL.Capture.McCaptDevAttributebut that did not solve the problemThe PROJECT IPP FILE includes the IMPORTS that you recommended as shown here.Can you help me resolve this issue so my CODE can set the CAMERA SIMULATION FILE in IP10.0.11 please?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