CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.092.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedChanging the logo in Floor plan application

 Post Reply Post Reply
Author
ThuthikaS View Drop Down
Newbie
Newbie


Joined: 22.Feb.2011
Location: India
Using: Floor plans
Status: Offline
Points: 1
Direct Link To This Post Topic: Changing the logo in Floor plan application
    Posted: 22.Feb.2011 at 12:02
Hi,
 
  Im working on Floor plans application which is my organization Inhouse project. My task is to replace the old logo with new one.But the problem is i couldnt able to make out the path of the old logo in order to replace with new one.
 
I have a server on which Autodeskmap guide is installed. i suppose my code is reading the logo from the above mentioned server but couldnt able to exactly pin point the location.
 
The following is the code snippet of my application :
 
The following is the function of javascript file:
 

function drawMap()

{

var map=getMap();

setup= map.getRedlineSetup();

map.enablePrintingEvents();

var ext= map.getMapExtent(true, true);

var mnX=ext.getMinX();

var mxX=ext.getMaxX();

var mnY=ext.getMinY();

var mxY=ext.getMaxY();

minX=mnX;

maxX=mxX;

minY=mnY;

maxY=mxY;

map.setAutoRefresh(false);

addAnnotationLayer();

layer=map.getMapLayer("box")

if (layer==null)

{

layer=map.createLayer("redline","box");

layer.setSelectability(false)

layer.setPriority(99.9)

}

if(borderOff!=1)

{

var coverLayer=map.getMapLayer("cover")

if(!coverLayer)

{

coverLayer=map.createLayer("redline","cover")

coverLayer.setSelectability(false)

coverLayer.setPriority(99.8)

}

createSquare(coverLayer,"coverbox",1,1,"solid",1,mxX-boxXOff,mxX-titleOff,mnY+titleOff,mxY-titleOff)

var sym=setup.getSymbolAttr();

sym.setSymbol("inhouse_logo")

var scalefactor=map.getMCSScaleFactor();

sym.setHeight(logoHeight*scalefactor,"M")

sym.setWidth(logoWidth*scalefactor,"M")

var logoInsert=map.createObject("MGPoint")

logoInsert.setX(mxX-logoInsertXOff)

logoInsert.setY(mxY-logoInsertYOff)

key="inhouse_logo"

logo=layer.getMapObject(key)

if(logo==null)

{

logo=layer.createMapObject(key,"inhouse_logo","")

logo.addSymbolPrimitive(logoInsert,true)

}

 
}
 
I've highlighted the logo reading portion in the above code , i need to replace the old logo with the new one.
 
Any ideas/solutions regarding the would be appreciated.
 
Thanks in Advace
Shivakumar
 
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,252 seconds.