How can Altova MapForce, not the mappings, be automated using powershell?
up vote
0
down vote
favorite
I was trying to access the COM objects, but the typing appears non-existant. However Mapforce does contain a .tlb file, which it somehow uses for accessing COM objects as if they were in regular .NET.
For anyone interested, the doc is avilable at https://manual.altova.com/mapforce/mapforceenterprise/index.html?cscharp.htm
I'm not sure if I can just do what the C# example code is doing in powershell, but I've not found a working method as of yet.
Is the example code shown here, https://manual.altova.com/mapforce/mapforceenterprise/index.html?cscharp.htm, able to work because of something about MapForce.tlb?
Where as somehow when I create the object in powershell,
$MapForce = New-Object -COMObject "Mapforce.Application"
I don't get the TLB type info like the C# IDE would?
Note: Looks like I have to create my own .NET interop assembly.
powershell com altova map-force
add a comment |
up vote
0
down vote
favorite
I was trying to access the COM objects, but the typing appears non-existant. However Mapforce does contain a .tlb file, which it somehow uses for accessing COM objects as if they were in regular .NET.
For anyone interested, the doc is avilable at https://manual.altova.com/mapforce/mapforceenterprise/index.html?cscharp.htm
I'm not sure if I can just do what the C# example code is doing in powershell, but I've not found a working method as of yet.
Is the example code shown here, https://manual.altova.com/mapforce/mapforceenterprise/index.html?cscharp.htm, able to work because of something about MapForce.tlb?
Where as somehow when I create the object in powershell,
$MapForce = New-Object -COMObject "Mapforce.Application"
I don't get the TLB type info like the C# IDE would?
Note: Looks like I have to create my own .NET interop assembly.
powershell com altova map-force
don't use COM or powershell - use AutoIT or AutoHotKey. they are both designed for automating other apps. [grin]
– Lee_Dailey
Nov 10 at 21:54
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I was trying to access the COM objects, but the typing appears non-existant. However Mapforce does contain a .tlb file, which it somehow uses for accessing COM objects as if they were in regular .NET.
For anyone interested, the doc is avilable at https://manual.altova.com/mapforce/mapforceenterprise/index.html?cscharp.htm
I'm not sure if I can just do what the C# example code is doing in powershell, but I've not found a working method as of yet.
Is the example code shown here, https://manual.altova.com/mapforce/mapforceenterprise/index.html?cscharp.htm, able to work because of something about MapForce.tlb?
Where as somehow when I create the object in powershell,
$MapForce = New-Object -COMObject "Mapforce.Application"
I don't get the TLB type info like the C# IDE would?
Note: Looks like I have to create my own .NET interop assembly.
powershell com altova map-force
I was trying to access the COM objects, but the typing appears non-existant. However Mapforce does contain a .tlb file, which it somehow uses for accessing COM objects as if they were in regular .NET.
For anyone interested, the doc is avilable at https://manual.altova.com/mapforce/mapforceenterprise/index.html?cscharp.htm
I'm not sure if I can just do what the C# example code is doing in powershell, but I've not found a working method as of yet.
Is the example code shown here, https://manual.altova.com/mapforce/mapforceenterprise/index.html?cscharp.htm, able to work because of something about MapForce.tlb?
Where as somehow when I create the object in powershell,
$MapForce = New-Object -COMObject "Mapforce.Application"
I don't get the TLB type info like the C# IDE would?
Note: Looks like I have to create my own .NET interop assembly.
powershell com altova map-force
powershell com altova map-force
edited Nov 10 at 20:07
asked Nov 10 at 18:51
J. M. Becker
2,0542230
2,0542230
don't use COM or powershell - use AutoIT or AutoHotKey. they are both designed for automating other apps. [grin]
– Lee_Dailey
Nov 10 at 21:54
add a comment |
don't use COM or powershell - use AutoIT or AutoHotKey. they are both designed for automating other apps. [grin]
– Lee_Dailey
Nov 10 at 21:54
don't use COM or powershell - use AutoIT or AutoHotKey. they are both designed for automating other apps. [grin]
– Lee_Dailey
Nov 10 at 21:54
don't use COM or powershell - use AutoIT or AutoHotKey. they are both designed for automating other apps. [grin]
– Lee_Dailey
Nov 10 at 21:54
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53242318%2fhow-can-altova-mapforce-not-the-mappings-be-automated-using-powershell%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
don't use COM or powershell - use AutoIT or AutoHotKey. they are both designed for automating other apps. [grin]
– Lee_Dailey
Nov 10 at 21:54