Asposed diagram python

Hi

Shapes move on the page when i try to change the size of shapes and the connection loose their connection to the shapes. I use the following method:

    #xform = shape_id_guid.getXForm()
    #xpos_x =xform.getPinX().getValue()
    #ypos_y =xform.getPinY().getValue()
    #xform.getHeight().setValue(3.0)
    #xform.getWidth().setValue(3.0)
    #xform.getLocPinX().setValue(lockpinx)
    #xform.getLocPinY().setValue(lockpiny)

Göran

@Gope
Could you please share your whole code and the template file that you are using.
We will check it soon.
Thanks.

It is difficult to handover the code. But maybe you could give an example how to change the boundaries of o shape

@Gope
Please try this sample code:

    shape  = Shape()
    xForm = shape.getXForm()
    xForm.getWidth().setValue(1.689)
    xForm.getHeight().setValue(1.689)
    xForm.getPinX().setValue(1)
    xForm.getPinY().setValue(1)
    xForm.getAngle().setValue(0)

Thanks.

thanks!

I will test it!

Göran

@Gope
Please feel free to contact us in case you have further comments or questions.

Hello again Philip!

Xform works but it will only increase the shape not the icon.

Is there a way of letting the icon Followbthe shape definition?

Göran

Thanks! I will try it.

@Gope
Could you please create a sample visio file with your desired property value (the icon Follow the shape ) in MS Visio manually, save the Visio file and provide us here , we will check and help you soon.
Thanks.

@jackelinewen
Please feel free to contact us if you have any questions or need further assistance.