29. August 2014
garbage , GIS , manifold
Just digged out some data examples i worked with at the museum of zoology long time ago...
A simple visualisation of a 3d scanner data dumped to a an xyz txt file.
--create geom index
CREATE INDEX mytable_geom_gist
USING GIST (geometry);
VACUUM ANALYZE public.mytable;
Solution applies to manifold 8.0.29 and older versions.
In PostGIS 2.x some spatial functions changed names and so far manifold has not been updated to reflect that. When linking the PostGIS data with AOI windowing, manifold tries to call a function called SetSRID - the equivalent is now st_setstrid. This pretty much may prevent users from using newest pgsql/postgis combo with manifold as obviously a db reports an exception.
In order to make things work, it is required to add a fake SetSRID function to PostGIS, so manifold is happy again. To do so, just review the code of the native st_setsrid function and create its SetSRID equivalent:
CREATE OR REPLACE FUNCTION SetSrid(geometry, integer)
RETURNS geometry AS
LANGUAGE c IMMUTABLE STRICT
ALTER FUNCTION SetSrid(geometry, integer)
OWNER TO postgres;
COMMENT ON FUNCTION SetSrid(geometry, integer) IS 'args: geom, srid - Sets the SRID on a geometry to a particular integer value.';
11. August 2014
There are 2 ways of debugging an X7 AddOn I am aware of:
- Attach to a running Corel process: Debug\Attach to Process - find Corel.exe
- Set the debug options in the project's properties, so when hitting F5 CorelDRAW is launched first
The expected behavior is now pretty obvious:
Note: When going for the latter option, make sure the path in the AppUI.xslt points to a dll that is created when compiling the project. Otherwise VS will not see the dll being loaded and debugger will not hit any breakpoints (when going for the former option, in order to avoid a need to copy a dll over and over again do debug it, it is worth adjusting the path too ;)
11. August 2014
Shelbym wrote some nice guides on how to create custom .NET dockers for CorelDRAW x6. There where some changes in X7 described here.
This post is pretty much about putting the above together, so one can quickly start playing with custom tools in X7.
The content of the attached archive is as follows:
- TestAddOn - a ready to go X7 addon; just coy it to the CorelDRAW Graphics Suite X7\Programs64\Addons and review the Window\Dockers
- TestAddOnSolution - an extremely simplistic project to give an idea on how to start with the addon customisation
- TestAddonTemplate - UserUI and AppUI xslts that make orel create Window\Dockers entry and load the custom dll