UNEXPECTED TEXT ERROR within RECORDED MACRO of FEATURE MANAGER SAVE SELECTED FEATURES
All --
I am working on a programming project for IPP91 and have bumped into an issue . . .
When I record a SAVE within the FEATURE MANAGER with the SELECTED FEATURES OPTION turned ON, the code that is generated is not digested properly by the PROJECT WORKBENCH.
Here is a recorded macro with the 1st SAVE performed with the SELECTED FEATURES OPTION turned OFF and the 2nd SAVE performed with the SELECTED FEATURES OPTION turned ON.
2014-02-07-110135.jpg
When the OK is pressed within the ERROR DIALOG, the cursor position itself just before the second NEW on LINE 362. This is shown in
2014-02-07-110401.jpg
Right now, the only option that I see is to save whatever FEATURE COLLECTIONS may be on the list in the .ROI file.
If there is a way to resolve this so that not all FEATURE COLLECTIONS are saved, it would be super.
Thanks.
-- Matt
I am working on a programming project for IPP91 and have bumped into an issue . . .
When I record a SAVE within the FEATURE MANAGER with the SELECTED FEATURES OPTION turned ON, the code that is generated is not digested properly by the PROJECT WORKBENCH.
Here is a recorded macro with the 1st SAVE performed with the SELECTED FEATURES OPTION turned OFF and the 2nd SAVE performed with the SELECTED FEATURES OPTION turned ON.
Public Function NewMacro4() As SimpleScript NewMacro4 = New SimpleScript Dim doc1 With Application.DocumentCommands.Active(NewMacro4) .Run(doc1) End With With Select.FeaturesManagerCommands.Add(NewMacro4) .Source = FeaturesManager.SourceType.Measurements .Collection = 0 .Feature = -1 .Run(doc1) End With With Select.FeaturesManagerCommands.SetType(NewMacro4) .Collection = 0 .Feature = 0 .Destination = FeaturesManager.mcCollectionType.mcctMeasurements .Run() End With With Select.FeaturesManagerCommands.Save(NewMacro4) .FileName = ThisApplication.Path(mcPathType.mcptWriteableDocuments) & "FeaturesCollections\Attempt1.roi" .Selected = Nothing .Run() End With With Select.FeaturesManagerCommands.Save(NewMacro4) .FileName = ThisApplication.Path(mcPathType.mcptWriteableDocuments) & "FeaturesCollections\Attempt2.roi" .Selected = New Integer()() {New Integer() {0,0,-1}} .Run() End With End FunctionWhen the STOP RECORDING BUTTON is pressed, the PROJECT WORKBENCH displays an error as shown in
2014-02-07-110135.jpg
When the OK is pressed within the ERROR DIALOG, the cursor position itself just before the second NEW on LINE 362. This is shown in
2014-02-07-110401.jpg
Right now, the only option that I see is to save whatever FEATURE COLLECTIONS may be on the list in the .ROI file.
If there is a way to resolve this so that not all FEATURE COLLECTIONS are saved, it would be super.
Thanks.
-- Matt
0
Answers
-
Hi Matt,
Thank you for reporting this bug – will be resolved in the future release.
Workaround: Replace line
.Selected = New Integer()() {New Integer() {0,0,-1}}
With
.Selected = New Object() {New Integer() {0,0,-1}}0 -
NikitaRG --
Thank you for the WORKAROUND.
I'll try this out ASAP.
Thanks again.
-- Matt
0 -
Nikita --
I'm sorry it has taken me so long to follow up on this post but my "workaround" in the program I was writing when I made this post on 07-FEB allowed the program to work so . . .
In IPP Version 9.1.5332.0 this issue is still happening when I record the documented steps within the FEATURES MANAGER.
As you suggested, I replaced the RECORDED CODE
.Selected = New Integer()() {New Integer() {0,0,-1}}
with the MANUALLY ENTERED CODE
.Selected = New Object() {New Integer() {0,0,-1}}
and the macro works.
Thank you very much for your assistance.
Have a good day.
-- 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