Get Involved
There's more to experience when you log in!
Edit Link
Announcements
Blogs
Communities
Discussions
Events
Glossary
Site Content
Libraries
on this day
between these dates
Posted by
Skip to main content (Press Enter).
Sign in/Sign up
Skip auxiliary navigation (Press Enter).
Knowledge Communities
Skip main navigation (Press Enter).
Toggle navigation
Content types
Announcements
Blogs
Communities
Discussions
Events
Glossary
Site Content
Libraries
Date range
on this day
between these dates
Posted by
Home
Communities
All Communities
My Communities
Product Communities
Special Interest Communities
Announcements
Events
Upcoming Events
FAQs
Precisely Sites
Precisely Support Home
Precisely Product Documentation
Precisely Ideas
Precisely Data Experience
Precisely APIs
MapInfo Marketplace
List of Contributions
Share
Twitter
Facebook
LinkedIn
Email
Anshul Goel
Knowledge Community Shared Account
Contact Details
Knowledge Community Shared Account
United States
×
Enter Password
Enter Password
Confirm Password
Anshul Goel
Knowledge Community Shared Account
Profile
Connections
Contacts
Contributions
Achievements
List of Contributions
My Content
1 to 20 of 43 total
search criteria =
ALL
RE: Raster SDK merge method in Python
Posted By
Anshul Goel
Aug 19, 2020 12:18 AM
Found In
Egroup:
MapInfo Pro
\
view thread
Hi Seydou, Try the below sample code for raster Merge operation. ### Category: Raster Operation Merge import clr import sys from os . path import abspath , join , dirname , exists from System import UInt32 clr . AddReference ( "MapInfo.RasterEngine.IO" ) clr . AddReference ( "MapInfo.RasterEngine.Common" ...
RE: Raster SDK Calculate method in Python
Posted By
Anshul Goel
Aug 7, 2020 2:54 AM
Found In
Egroup:
MapInfo Pro
\
view thread
Hi Julien, Below are two examples in python for Calculate raster operation. First one is similar to code. ### Category: Raster Operation Calculator from os . path import abspath , join , dirname , exists clr . AddReference ( "MapInfo.RasterEngine.IO" ) clr . AddReference ( "MapInfo.RasterEngine.Common" ...
RE: Using Python can we assign symbology to a dataset?
Posted By
Anshul Goel
Jul 7, 2020 12:25 PM
Found In
Egroup:
MapInfo Pro
\
view thread
Hi Geoge, You can issue below mb command after executing add map. Below command will only work for Range and Ind value theme. Shade [ Window window_id ] ( layer_id | layer_name ) With Metadata Thanks Anshul ------------------------------ Anshul Goel Knowledge Community Shared Account Shelton ...
RE: Using Python Script to Customize MapInfo Pro UI and Create Dialogs
Posted By
Anshul Goel
Jul 7, 2020 12:00 PM
Found In
Egroup:
MapInfo Pro Developers User Group
\
view thread
Hi Navjot, To enable/disable button you can assign a canexecute handler while creating commands and attach to buttons. In the canexecute handler you can check for condition on which button needs to be enabled. See example below: from MapInfo . Types import WindowType buttonOpenDialogWinForms = ...
RE: Using Python can we assign symbology to a dataset?
Posted By
Anshul Goel
Jun 30, 2020 2:32 AM
Found In
Egroup:
MapInfo Pro
\
view thread
Hi George, To attach a python method or MBX sub to a button click you need to create python addin because simple python script will run, execute and unload from MapInfo Pro. Addin on the other hand remains in MapInfo Pro memory unless explicitly unloaded. In case of addin also, you just have to work ...
RE: Using Python Script to Customize MapInfo Pro UI and Create Dialogs
Posted By
Anshul Goel
Jun 25, 2020 6:02 AM
Found In
Egroup:
MapInfo Pro Developers User Group
\
view thread
Hi Navjot, I think you should keep the state after the button click and clear it before the button click. Same logic could apply in any coding language. Thanks Anshul ------------------------------ Anshul Goel Knowledge Community Shared Account Shelton CT ------------------------------
RE: Passing string array as Sub parameter from C#
Posted By
Anshul Goel
Jun 24, 2020 7:55 AM
Found In
Egroup:
MapInfo Pro Developers User Group
\
view thread
Hi Marijan, Second parameter in CallMapBasicSubroutine is an array which notifies the number of parameter to the mapbasic sub. ------------------------------ Anshul Goel Knowledge Community Shared Account Shelton CT ------------------------------
RE: Using Python can we assign symbology to a dataset?
Posted By
Anshul Goel
Jun 24, 2020 7:16 AM
Found In
Library:
Mapinfo Pro
RE: Using Python can we assign symbology to a dataset?
Posted By
Anshul Goel
Jun 24, 2020 7:16 AM
Found In
Egroup:
MapInfo Pro
\
view thread
Hi George, From your post I think you want to create a Addin for MapInfo Pro in Python. For this you can take a look at the attached ribbon customization sample. Basically Ribbon has a Tab and inside the Tab we have multiple Ribbon Groups. Example: newTab = pro.Ribbon.Tabs.Add("myTab", "New Tab") # this ...
RE: Passing string array as Sub parameter from C#
Posted By
Anshul Goel
Jun 24, 2020 6:59 AM
Found In
Egroup:
MapInfo Pro Developers User Group
\
view thread
Hi Marijan, We don't support passing array from C# to MapBasic sub. P assing single string (concatenated array members, delimited by semicolon), and then I would split them in Sub is the only way right now. ------------------------------ Anshul Goel Knowledge Community Shared Account Shelton CT ---- ...
RE: Using Python Script to Customize MapInfo Pro UI and Create Dialogs
Posted By
Anshul Goel
Jun 24, 2020 6:29 AM
Found In
Egroup:
MapInfo Pro Developers User Group
\
view thread
Hi Navjot, You can do this by query out the values using a Select statement: Select SOMECOLUMN from SOMETABLE Group By SOMECOLUMN and then build shade statement. Below is the small python code which you can use as it is. ### Description: Shows how to automate the creation on dynamic individual value ...
RE: Using Python Script to Customize MapInfo Pro UI and Create Dialogs
Posted By
Anshul Goel
Jun 3, 2020 3:47 AM
Found In
Egroup:
MapInfo Pro Developers User Group
\
view thread
Hi Navjot, You can convert the PyQT5 dialog in custom_pyqt.py into a dialog like below: import os os . environ [ 'QT_USE_NATIVE_WINDOWS' ] = "1" from PyQt5 . QtWidgets import QPushButton , QWidget , QDialog , QVBoxLayout import win32 . win32gui import win32 . lib . win32con as win32con from ...
RE: Using Python Script to Customize MapInfo Pro UI and Create Dialogs
Posted By
Anshul Goel
Jun 2, 2020 3:12 AM
Found In
Library:
MapInfo Pro Developers User Group
RE: Using Python Script to Customize MapInfo Pro UI and Create Dialogs
Posted By
Anshul Goel
Jun 2, 2020 3:12 AM
Found In
Egroup:
MapInfo Pro Developers User Group
\
view thread
Hi Navjot, I have updated the above sample to open up a PyQT5 dialog on button click of ribbon. Thanks Anshul ------------------------------ Anshul Goel Knowledge Community Shared Account Shelton CT ------------------------------
RE: Using Python Script to Customize MapInfo Pro UI and Create Dialogs
Posted By
Anshul Goel
May 29, 2020 7:13 AM
Found In
Egroup:
MapInfo Pro Developers User Group
\
view thread
Hello Navjot, Here is a basic example of reparenting a dialog created in PyQT5 into MapInfo Pro and than interact with Pro using .Net API or MapBasic form Dialog button handlers. You can create python addin with PyQT5 dialogs using the sample approach. For this example to run you have to install pyqt5 ...
RE: Using Python for scripting in MapInfo Pro
Posted By
Anshul Goel
May 20, 2020 9:23 AM
Found In
Egroup:
MapInfo Pro Developers User Group
\
view thread
Hi Navjot, From what I understood, you want to control MapInfo Pro from Python Application running out of process from MapInfo Pro. For doing the same you can get hold of MapInfo Pro COM object and then use the Do and Eval methods on the COM interface to execute/evaluate MapBasic. I think it would ...
RE: Using Python Script to Customize MapInfo Pro UI and Create Dialogs
Posted By
Anshul Goel
May 20, 2020 8:53 AM
Found In
Egroup:
MapInfo Pro Developers User Group
\
view thread
I have updated the attached final addin with latest one. Stay Tuned for the next post in thread regarding debugging of Python Addin in Visual Studio Code. ------------------------------ Anshul Goel Knowledge Community Shared Account Shelton CT ------------------------------
RE: Using Python Script to Customize MapInfo Pro UI and Create Dialogs
Posted By
Anshul Goel
May 20, 2020 8:52 AM
Found In
Library:
MapInfo Pro Developers User Group
RE: Using Python for scripting in MapInfo Pro
Posted By
Anshul Goel
May 20, 2020 5:35 AM
Found In
Egroup:
MapInfo Pro Developers User Group
\
view thread
Hi Navjot, I have created a post with example on creating a MapInfo Pro Addin In Python with ways of creating a dialog interacting with MapInfo Pro in below post. Please have a look at this and let me know if you need something specific. https://community.pitneybowes.com/communities/community-home/d ...
Using Python Script to Customize MapInfo Pro UI and Create Dialogs
Posted By
Anshul Goel
May 20, 2020 5:32 AM
Found In
Egroup:
MapInfo Pro Developers User Group
\
view thread
Based on the Continued content about using Python script to create addins for MapInfo Pro, This post will help you in creating a Python Addin which will allow to customize the MapInfo Pro Ribbon, add some button and Create Dialogs. Before we start, Please have a look at the post which will give you ...
«
1
2
3
»
About Precisely
About Us
Newsroom
Developers
Customer Support
Product Support
Community FAQ
Contact Us
Copyright ©2020 Precisely. All rights reserved worldwide.
Terms of Use
Privacy Policy
Copyright ©2020 Precisely. All rights reserved worldwide.
Powered by Higher Logic